Export (0) Print
Expand All

CEvent::SetEvent 

Sets the state of the event to signaled, releasing any waiting threads.


BOOL SetEvent( );

Nonzero if the function was successful, otherwise 0.

If the event is manual, the event will remain signaled until ResetEvent is called. More than one thread can be released in this case. If the event is automatic, the event will remain signaled until a single thread is released. The system will then set the state of the event to nonsignaled. If no threads are waiting, the state remains signaled until one thread is released.

Community Additions

ADD
Show:
© 2014 Microsoft