难道Control.Invoke抽取消息? [英] Does Control.Invoke pump messages?

查看:177
本文介绍了难道Control.Invoke抽取消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否Control.Invoke()继续在螺纹抽取消息,它正在从而阻止称为? (System.Windows.Forms的)

Does Control.Invoke() continue to pump messages in the thread that it was called from while blocked? (System.Windows.Forms)

推荐答案

没有。调用阻塞 - 整个线程将被阻塞,直到来调用返回

No. Invoke is blocking - the entire thread will block until the call to Invoke returns.

还有的BeginInvoke 这是非阻塞的。

这篇关于难道Control.Invoke抽取消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆