难道Control.Invoke抽取消息?消息、Control、Invoke

由网友(奇迹在转角)分享简介:是否Control.Invoke()继续在螺纹抽取消息,它正在从而阻止称为? (System.Windows.Forms的)Does Control.Invoke() continue to pump messages in the thread that it was called from while block...

是否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 这是非阻塞的。

阅读全文

相关推荐

最新文章