OpenSceneGraph
|
This class provides an object-oriented thread barrier interface. More...
Public Member Functions | |
Barrier (int numThreads=0) | |
Constructor. | |
virtual | ~Barrier () |
Destructor. | |
virtual void | reset () |
Reset the barrier to it's original state. | |
virtual void | block (unsigned int numThreads=0) |
Block until numThreads threads have entered the barrier. | |
virtual void | release () |
Release the barrier, now. | |
virtual int | numThreadsCurrentlyBlocked () |
Return the number of threads currently blocked in the barrier, Return -1 if error. | |
void | invalidate () |
This class provides an object-oriented thread barrier interface.