- // Events are a bit annoying if you're waiting for multiple
- // events; unlike UN*X select() and poll(), which indicate
- // which FDs are available, WaitForMultipleObjects() and
- // WSAWaitForMultipleEvents() don't give you an indication
- // of *all* of the events that are signaled, they just tell
- // you the first one that's signaled.
- //
- // Therefore, we must use WaitForSingleObject() to test
- // this event; that means it must not be auto-reset,
- // as that means that once WSAWaitForMultipleEvents() is
- // woken up, it's no longer signaled.
- //
- state_change_event = CreateEvent(NULL, TRUE, FALSE, NULL);
+ state_change_event = CreateEvent(NULL, FALSE, FALSE, NULL);