Partager via


CEvent::SetEvent

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

BOOL SetEvent( );

Return Value

Nonzero if the function was successful, otherwise 0.

Remarks

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.

Requirements

Header: afxmt.h

See Also

Reference

CEvent Class

Hierarchy Chart

Other Resources

CEvent Members