openMSX
Public Member Functions | List of all members
openmsx::CondVar Class Reference

#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...
 

Detailed Description

Definition at line 9 of file CondVar.hh.

Member Function Documentation

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.

Parameters
usThe maximum time to wait, in micro seconds.
Returns
Returns true if we return because of a timeout.

Definition at line 13 of file CondVar.cc.

Referenced by openmsx::EventDistributor::sleep().


The documentation for this class was generated from the following files: