MsgWaitForMultipleObjects
2013-11-26 22:30
316 查看
Use caution when calling the wait functions and code that directly or indirectly creates windows. If a thread creates any windows, it must process messages. Message broadcasts are sent to all windows in the system. A thread that uses a wait function with no time-out interval may cause the system to become deadlocked. Two examples of code that indirectly creates windows are DDE and the CoInitialize function. Therefore, if you have a thread that creates windows, use MsgWaitForMultipleObjects or MsgWaitForMultipleObjectsEx, rather than WaitForSingleObject.
相关文章推荐
- 线程函数的设计以及线程同步要点(MsgWaitForMultipleObjects等)
- WaitForSingleObject或MsgWaitForMultipleObjects函数无返回,程序直接退出问题
- 线程函数的设计以及线程同步要点(MsgWaitForMultipleObjects等)
- MsgWaitForMultipleObjects
- 线程函数的设计以及线程同步要点(MsgWaitForMultipleObjects等)
- WaitForSingleObject或MsgWaitForMultipleObjects函数无返回,程序直接退出问题
- MsgWaitForMultipleObjects
- MsgWaitForMultipleObjects
- MsgWaitForMultipleObjects WaitForMultipleObjects
- MsgWaitForMultipleObjects函数
- MsgWaitForMultipleObjects
- 改进的延时函数Delay(使用MsgWaitForMultipleObjects等待消息或超时的到来)
- MsgWaitForMultipleObjects_测试
- WaitForMultipleObject与MsgWaitForMultipleObjects用法
- 在界面线程不能使用Sleep和WaitForSingleObject之类的函数, 使用 MsgWaitForMultipleObjects
- 主线程利用MsgWaitForMultipleObjects等待子线程结束时,同时处理子线程发送的窗口消息
- WaitForMultipleObject与MsgWaitForMultipleObjects用法 .
- 在主线程中慎用WaitForSingleObject (WaitForMultipleObjects) --代替方法:MsgWaitForMultipleObjects
- C++ 多线程阻塞 (多线程同步)(MsgWaitForMultipleObjects)
- 主线程使用WaitForSingleObject和MsgWaitForMultipleObjects等待线程返回值