Open CASCADE Technology
7.7.0
|
This is boolean flag intended for communication between threads. One thread sets this flag to TRUE to indicate some event happened and another thread either waits this event or checks periodically its state to perform job. More...
#include <Standard_Condition.hxx>
Public Member Functions | |
Standard_Condition (bool theIsSet) | |
Default constructor. More... | |
~Standard_Condition () | |
Destructor. More... | |
void | Set () |
Set event into signaling state. More... | |
void | Reset () |
Reset event (unset signaling state) More... | |
void | Wait () |
Wait for Event (infinity). More... | |
bool | Wait (int theTimeMilliseconds) |
Wait for signal requested time. More... | |
bool | Check () |
Do not wait for signal - just test it state. More... | |
bool | CheckReset () |
Method perform two steps at-once - reset the event object and returns true if it was in signaling state. More... | |
This is boolean flag intended for communication between threads. One thread sets this flag to TRUE to indicate some event happened and another thread either waits this event or checks periodically its state to perform job.
This class provides interface similar to WinAPI Event objects.
Standard_Condition::Standard_Condition | ( | bool | theIsSet | ) |
Default constructor.
theIsSet | Initial flag state |
Standard_Condition::~Standard_Condition | ( | ) |
Destructor.
bool Standard_Condition::Check | ( | ) |
Do not wait for signal - just test it state.
bool Standard_Condition::CheckReset | ( | ) |
Method perform two steps at-once - reset the event object and returns true if it was in signaling state.
void Standard_Condition::Reset | ( | ) |
Reset event (unset signaling state)
void Standard_Condition::Set | ( | ) |
Set event into signaling state.
void Standard_Condition::Wait | ( | ) |
Wait for Event (infinity).
bool Standard_Condition::Wait | ( | int | theTimeMilliseconds | ) |
Wait for signal requested time.
theTimeMilliseconds | wait limit in milliseconds |