18 :mManualReset(manualReset)
22 mEvent = CreateEvent(
NULL, manualReset? TRUE:FALSE, FALSE,
NULL);
26 mEvent = CreateEvent(
NULL, manualReset? TRUE:FALSE, FALSE, name.c_str());
89 if (pSignaled !=
NULL)
115 mManualReset = manualReset;
125 *pManualReset = mManualReset;
136 DWORD retCode = WAIT_OBJECT_0;
145 if (timeout == 0xffffffff)
153 retCode = WaitForSingleObject(
mEvent, (DWORD)timeout);
162 if (retCode == WAIT_OBJECT_0)
167 else if (retCode == WAIT_TIMEOUT)
181 if (pEventObject !=
NULL)
185 *pEventObject = (uint64_t)
mEvent;
203 if (pEventList ==
NULL)
224 for (i = 0; i < numEvents; i++)
232 eventArray[i] = pEvent->mpImpl->
mEvent;
236 if (timeout == 0xffffffff)
242 DWORD retCode = WaitForMultipleObjects(numEvents, eventArray, all, (DWORD)timeout);
245 if ((retCode >= WAIT_OBJECT_0) && (retCode < (WAIT_OBJECT_0 + numEvents)))
250 else if (retCode == WAIT_TIMEOUT)