Event信号复位问题

来源:互联网 发布:企望软件 编辑:程序博客网 时间:2024/05/29 14:28

CreateEvent()创建事件  

对于以自动复位方式创建的事件对象,在其置位后一被WaitForSingleObject()等待到就会立即复位

手动的话,就需要SetEvent()置位


bManualReset 
[in] Boolean that specifies whether a manual-reset or auto-reset event object is created. If TRUE, then you must use the ResetEvent function to manually reset the state to nonsignaled. If FALSE, the system automatically resets the state to nonsignaled after a single waiting thread has been released. 

0 0