B2BITS FIX Antenna HFT
1.0.17
|
Condition class provides communication, the ability to wait for some shared resource to reach some desired state, or to signal that it has reached some state in which another thread may be interested. More...
#include <B2BITS_Condition.h>
Public Member Functions | |
void | broadcast () |
Broadcasts condition, waking all current waiters. More... | |
Condition () | |
Constructor. More... | |
void | signal () |
Signals condition, waking one waiting thread. More... | |
bool | timedWait (OldMutex *apMutex, Long aTimeout) |
Waits on condition, until awaked by a signal or broadcast, or until a specified amount of time has elapsed. More... | |
void | wait (OldMutex *apMutex) |
Waits on condition, until awakened by a signal or broadcast. More... | |
~Condition () | |
Destructor. More... | |
Condition class provides communication, the ability to wait for some shared resource to reach some desired state, or to signal that it has reached some state in which another thread may be interested.
Each condition variable is closely associated with a mutex that protects the state of the resource.
System::Condition::Condition | ( | ) |
Constructor.
SystemException |
System::Condition::~Condition | ( | ) |
Destructor.
void System::Condition::broadcast | ( | ) |
Broadcasts condition, waking all current waiters.
SystemException |
void System::Condition::signal | ( | ) |
Signals condition, waking one waiting thread.
SystemException |
Waits on condition, until awaked by a signal or broadcast, or until a specified amount of time has elapsed.
If awaked by a signal or broadcast returns true, otherwise false. The current thread must own specified mutex.
aTimeout | the maximum time to wait in milliseconds. |
SystemException |
void System::Condition::wait | ( | OldMutex * | apMutex | ) |
Waits on condition, until awakened by a signal or broadcast.
The current thread must own specified mutex.
SystemException |