19,504
社区成员
发帖
与我相关
我的任务
分享
emarks
The WaitForSingleObject function checks the current state of the specified object. If the object抯 state is nonsignaled, the calling thread enters an efficient wait state. The thread consumes very little processor time while waiting for the object state to become signaled or the time-out interval to elapse.
Before returning, a wait function modifies the state of some types of synchronization objects. Modification occurs only for the object or objects whose signaled state caused the function to return. For example, the count of a semaphore object is decreased by one.