C12Adapter Opensource C++ Interface
|
Class that supports event paradigm, synchronizer kind. More...
Public Member Functions | |
MEvent (bool setInitially=false, bool manualClear=false) | |
Constructor that creates the event. More... | |
virtual | ~MEvent () |
Destructor. | |
void | Set () |
Set the event into signaled state. More... | |
void | Clear () |
Clear the event from signaled state. More... | |
virtual void | Unlock () |
The implementation of this virtual clears the event. More... | |
![]() | |
void | Lock () |
Lock without timeout. More... | |
bool | LockWithTimeout (long timeout) |
Additional Inherited Members | |
![]() | |
static void | WaitForAll (MSynchronizer *p0, MSynchronizer *p1, MSynchronizer *p2=0, MSynchronizer *p3=NULL, MSynchronizer *p4=NULL) |
Wait until all the objects in the list are set to nonsignaled state. More... | |
static bool | WaitWithTimeoutForAll (long timeout, MSynchronizer *p0, MSynchronizer *p1, MSynchronizer *p2=0, MSynchronizer *p3=NULL, MSynchronizer *p4=NULL) |
Wait until all the objects in the list are set to nonsignaled state, or timeout expires. More... | |
static unsigned | WaitForAny (MSynchronizer *p0, MSynchronizer *p1, MSynchronizer *p2=NULL, MSynchronizer *p3=NULL, MSynchronizer *p4=NULL) |
Wait until any of the objects in the list are set to nonsignaled state. More... | |
static bool | WaitWithTimeoutForAny (long timeout, unsigned *which, MSynchronizer *p0, MSynchronizer *p1, MSynchronizer *p2=0, MSynchronizer *p3=NULL, MSynchronizer *p4=NULL) |
Wait until any of the objects in the list are set to nonsignaled state, or timeout expires. More... | |
![]() | |
MSynchronizer () | |
Constructor that creates synchronizer. More... | |
virtual | ~MSynchronizer () |
Destructor. | |
Class that supports event paradigm, synchronizer kind.
The implementation of the class is system dependent.
MEvent::MEvent | ( | bool | setInitially = false , |
bool | manualClear = false |
||
) |
Constructor that creates the event.
The event can be set to signaled state initially, starting from its creation. Also, if the event is with manual clearing, the only way to clear the event is with Clear service, otherwise the event will be cleared as soon as someone has waited till the event.
Note that the name for the event is a system dependent parameter.
void MEvent::Clear | ( | ) |
Clear the event from signaled state.
void MEvent::Set | ( | ) |
Set the event into signaled state.
|
virtual |
The implementation of this virtual clears the event.
Implements MSynchronizer.