openMSX
|
#include <CondVar.hh>
Public Member Functions | |
void | wait () |
Block till another thread signals this condition variable. More... | |
bool | waitTimeout (unsigned us) |
Same as wait(), but with a timeout. More... | |
void | signal () |
Wake on thread that's waiting on this condtition variable. More... | |
void | signalAll () |
Wake all threads that are waiting on this condition variable. More... | |
Definition at line 9 of file CondVar.hh.
void openmsx::CondVar::signal | ( | ) |
Wake on thread that's waiting on this condtition variable.
Definition at line 20 of file CondVar.cc.
void openmsx::CondVar::signalAll | ( | ) |
Wake all threads that are waiting on this condition variable.
Definition at line 25 of file CondVar.cc.
Referenced by openmsx::EventDistributor::distributeEvent().
void openmsx::CondVar::wait | ( | ) |
Block till another thread signals this condition variable.
Definition at line 7 of file CondVar.cc.
bool openmsx::CondVar::waitTimeout | ( | unsigned | us | ) |
Same as wait(), but with a timeout.
us | The maximum time to wait, in micro seconds. |
Definition at line 13 of file CondVar.cc.
Referenced by openmsx::EventDistributor::sleep().