Поделиться через


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.

Требования

Header: afxmt.h

См. также

Основные понятия

CEvent Class

CEvent Members

Hierarchy Chart