OGRE-Next
3.0.0
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 () |
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. More... | |
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 | ( | ) |
void Ogre::Barrier::sync | ( | ) |
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.