The WaitForSingleObject function checks the current state of the specified object. If the object's state is nonsignaled, the calling thread enters the wait state until the object is signaled or the time-out interval elapses.
在双线程的环境下来理解这个问题,一个全局的 event,初始是无信号的一个线程 A 在无限等待(WaitForSingleObject(,INFINITE)另外一个线程 B 在条件满足的时候,设置 event 为有信号,使得线程 A 继续执行
无限期等待就是海枯石烂后还继续等待。等待啥呢?就是有信号状态。