Public Member Functions
SbBool wait (SbMutex &mutex)
SbBool timedWait (SbMutex &mutex, SbTime period)
void wakeOne (void)
void wakeAll (void)
A class for synchronizing access to global variables.
Condition variables are used to protect global variables in an environment where multiple threads are running concurrently.
Constructor & Destructor Documentation
SbCondVar::SbCondVar (void) [inline]
SbCondVar::~SbCondVar (void) [inline]
Member Function Documentation
SbBool SbCondVar::wait (SbMutex & mutex) [inline]
This method blocks the calling thread until another thread calls wakeOne() or wakeAll() on the SbCondVar object.
SbBool SbCondVar::timedWait (SbMutex & mutex, SbTime period) [inline]
This method blocks the calling thread until another thread calls wakeOne() or wakeAll() on the object, but if this does not happen within
period, the thread is woken again anyways.
TRUE is returned when the thread wakes because either wakeOne() or wakeAll() was called,
FALSE is returned if the wait times out.
void SbCondVar::wakeOne (void) [inline]
This method wakes up one of the threads waiting on this SbCondVar.
void SbCondVar::wakeAll (void) [inline]
This method wakes up all the threads waiting on this SbCondVar.
Generated automatically by Doxygen for Coin from the source code.
The man page SbCondVar.3coin2(3) is an alias of SbCondVar.3coin3(3).