When the waiting thread is released, the state is reset to non-signaled state.
当正在等待的线程被释放时,其状态就被设置为无信号的状态。
The function SetEvent() is used to set the state of the event object to signaled state.
函数 SetEvent() 用来将事件对象的状态设置为有信号状态。
The wait function on the event object blocks the calling thread until its state is set to signaled state.
对事件对象调用的等待函数会阻塞调用线程,直到其状态被设置为有信号状态为止。
应用推荐