![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXThread.h>
Public Member Functions | |
FXCondition () | |
FXbool | wait (FXMutex &mtx) |
FXbool | wait (FXMutex &mtx, FXTime nsec) |
void | signal () |
void | broadcast () |
~FXCondition () |
When a thread calls wait, the associated mutex is unlocked while the thread is blocked. When the condition becomes signaled, the associated mutex is locked and the thread(s) are reawakened.
FX::FXCondition::FXCondition | ( | ) |
Initialize the condition.
FX::FXCondition::~FXCondition | ( | ) |
Delete the condition.
Wait until condition becomes signalled, using given mutex, which must already have been locked prior to this call.
Return true if the wait ended due to the condition being signalled through signal() or broadcast(), and false if the wait was interrupted or some error occurred.
Wait until condition becomes signalled, using given mutex, which must already have been locked prior to this call.
Return true if the wait ended due to the condition being signalled through signal() or broadcast(), and false if the wait timed out, was interrupted, or some other error occurred. The absolute time is specified in nanoseconds since the Epoch (Jan 1, 1970).
void FX::FXCondition::signal | ( | ) |
Wake or unblock a single blocked thread.
void FX::FXCondition::broadcast | ( | ) |
Wake or unblock all blocked threads.
![]() |