|
openscenegraph
|
This class provides an object-oriented thread barrier interface. More...
#include <Barrier>
Public Member Functions | |
| Barrier (int numThreads=0) | |
| virtual | ~Barrier () |
| virtual void | reset () |
| virtual void | block (unsigned int numThreads=0) |
| virtual void | release () |
| virtual int | numThreadsCurrentlyBlocked () |
| void | invalidate () |
This class provides an object-oriented thread barrier interface.
| OpenThreads::Barrier::Barrier | ( | int | numThreads = 0 | ) |
Constructor
Referenced by osg::BarrierOperation::BarrierOperation(), and invalidate().
|
virtual |
Destructor
|
virtual |
Block until numThreads threads have entered the barrier.
| void OpenThreads::Barrier::invalidate | ( | ) |
References Barrier().
|
virtual |
Return the number of threads currently blocked in the barrier, Return -1 if error.
|
virtual |
Release the barrier, now.
Reimplemented in osg::BarrierOperation.
|
virtual |
Reset the barrier to it's original state.