function provides a single operation that sets (to signaled) the state of the
specified event object and then resets it (to nonsignaled) after releasing the
appropriate number of waiting threads.
| HANDLE hEvent
||// handle of event object
Identifies the event object. The CreateEvent
function returns this handle.
The handle must have EVENT_MODIFY_STATE access. For more information, see Interprocess Synchronization Objects
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError
For a manual-reset event object, all waiting threads that can be released
immediately are released. The function then resets the event object's state to
nonsignaled and returns.
For an auto-reset event object, the function resets the state to nonsignaled
and returns after releasing a single waiting thread, even if multiple threads
If no threads are waiting, or if no thread can be released immediately, PulseEvent
simply sets the event object's state to nonsignaled and returns.
Note that for a thread using the multiple-object wait functions
to wait for all specified objects to be signaled, PulseEvent
can set the event object's state to signaled and reset it to nonsignaled
without causing the wait function to return. This happens if not all of the
specified objects are simultaneously signaled.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database