setEvent is called without ResetEvent
问题 what happens if a manual-reset event is set using setEvent but not reset using ResetEvent; and that event is triggered multiple times.i.e. while the event is getting processed, again the event is set. following is the sample task: void foo() { ... SetEvent(hEvent1); ... } void foo1() { ... SetEvent(hEvent2); ... } int MainHandler() { ... dwEvent = WaitForMultipleObjects(2, ghEvents, // array of objects FALSE, // wait for any object 5000); switch(dwEvent) { case hEvent1: //do something break;