StartTimer();
SetEvent(handle);
StartTimer();
SetEvent(handle);
其中StartTimer()中创建了一个线程,线程函数中有一个WaitForSingleObject(handle,3000)
函数。handle是全局变量。
第一次执行SetEvent(handle)后,WaitForSingleObject的返回值是WAIT_OBJECT_0,
而第二次却不是,为什么?