标签:
DWORD dwFlag = ::WaitForSingleObject(m_threadEvents[0], 0) ; switch (dwFlag) { case WAIT_OBJECT_0: break; case WAIT_TIMEOUT: { ::SetEvent(m_threadEvents[0]) ; } break; default: RC_ASSERT(false); return RC_S_FALSE ; }
1.有信号进入WAIT_OBJECT_0
2.没信号进入WAIT_TIMEOUT
标签:
原文地址:http://www.cnblogs.com/chunyou128/p/4347817.html