#include <FXThread.h>
Public Member Functions | |
FXCondition () | |
void | wait (FXMutex &mtx) |
FXbool | wait (FXMutex &mtx, FXlong nsec) |
void | signal () |
void | broadcast () |
~FXCondition () |
FX::FXCondition::FXCondition | ( | ) |
Initialize the condition.
FX::FXCondition::~FXCondition | ( | ) |
Delete the condition.
void FX::FXCondition::wait | ( | FXMutex & | mtx | ) |
Wait until condition becomes signalled, using given mutex, which must already have been locked prior to this call.
FXbool FX::FXCondition::wait | ( | FXMutex & | mtx, | |
FXlong | nsec | |||
) |
Wait until condition becomes signalled, using given mutex, which must already have been locked prior to this call. Returns TRUE if successful, FALSE if timeout occurred. Note that the wait-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