|
http://www.sim.no http://www.coin3d.org |
A class for synchronizing access to global variables. More...
#include <Inventor/threads/SbCondVar.h>
Public Member Functions | |
| SbCondVar (void) | |
| ~SbCondVar (void) | |
| 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.
|
inline |
Constructor.
|
inline |
Destructor.
|
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.
References SbTime::getValue().
|
inline |
This method wakes up one of the threads waiting on this SbCondVar.
|
inline |
This method wakes up all the threads waiting on this SbCondVar.
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Thu Jan 16 2025 for Coin by Doxygen. 1.13.2