Open CASCADE Technology 7.8.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. | |
~Standard_Condition () | |
Destructor. | |
void | Set () |
Set event into signaling state. | |
void | Reset () |
Reset event (unset signaling state) | |
void | Wait () |
Wait for Event (infinity). | |
bool | Wait (int theTimeMilliseconds) |
Wait for signal requested time. | |
bool | Check () |
Do not wait for signal - just test it state. | |
bool | CheckReset () |
Method perform two steps at-once - reset the event object and returns true if it was in signaling state. | |
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).
Wait for signal requested time.
theTimeMilliseconds | wait limit in milliseconds |