OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
A barrier is a synchronization mechanism where multiple threads wait until all of them have reached the barrier sync point before continuing. More...
#include <OgreBarrier.h>
Public Member Functions | |
Barrier (size_t threadCount) | |
~Barrier () | |
void | sync (void) |
When calling this function, it will block until all N threads reach this point; where N is the thread count passed to the Barrier's constructor. | |
A barrier is a synchronization mechanism where multiple threads wait until all of them have reached the barrier sync point before continuing.
A fixed number of threads must be provided on initialization.
Ogre::Barrier::Barrier | ( | size_t | threadCount | ) |
Ogre::Barrier::~Barrier | ( | ) |
When calling this function, it will block until all N threads reach this point; where N is the thread count passed to the Barrier's constructor.