Deskflow 1.22.0.197
Keyboard and mouse sharing utility
|
Condition variable. More...
#include <CondVar.h>
Public Member Functions | |
CondVar (Mutex *mutex, const T &value) | |
Initialize using value . | |
CondVar (const CondVar &) | |
Initialize using another condition variable's value. | |
~CondVar () | |
manipulators | |
CondVar & | operator= (const CondVar &cv) |
Assigns the value of cv to this. | |
CondVar & | operator= (const T &v) |
Assigns value to this. | |
Public Member Functions inherited from CondVarBase | |
CondVarBase (Mutex *mutex) | |
~CondVarBase () | |
void | lock () const |
Lock the condition variable's mutex. | |
void | unlock () const |
Unlock the condition variable's mutex. | |
void | signal () |
Signal the condition variable. | |
void | broadcast () |
Signal the condition variable. | |
bool | wait (double timeout=-1.0) const |
Wait on the condition variable. | |
bool | wait (Stopwatch &timer, double timeout) const |
Wait on the condition variable. | |
Mutex * | getMutex () const |
Get the mutex. |
accessors | |
operator const volatile T & () const | |
Get the variable's value. |
Condition variable.
A condition variable with storage for type T
.
Initialize using value
.
Initialize using another condition variable's value.
|
inline |
Get the variable's value.
Get the variable's value. The condition variable should be locked before calling this method.
Assigns the value of cv
to this.
Set the variable's value. The condition variable should be locked before calling this method.
Assigns value
to this.
Set the variable's value. The condition variable should be locked before calling this method.