HDK
|
Condition synchronization primitive. More...
#include <UT_Condition.h>
Public Member Functions | |
UT_Condition () | |
~UT_Condition () | |
void | waitForTrigger (UT_Lock &lock) |
bool | waitForTriggerMS (UT_Lock &lock, int64 timeout_msec) |
void | triggerAll () |
void | triggerOne () |
UT_Condition (const UT_Condition ©)=delete | |
UT_Condition & | operator= (const UT_Condition ©)=delete |
Condition synchronization primitive.
Definition at line 25 of file UT_Condition.h.
UT_Condition::UT_Condition | ( | ) |
UT_Condition::~UT_Condition | ( | ) |
|
delete |
|
delete |
void UT_Condition::triggerAll | ( | ) |
Trigger all waiting threads.
void UT_Condition::triggerOne | ( | ) |
Trigger one waiting thread.
Block until we're triggered.
The lock must be held when this method is called it will be released when waiting for the trigger and re-acquired when this method returns.
Wait with a timeout, returns true if the lock was re-acquired. False means a timeout occurred.