CS::Threading::Barrier Class Reference
Barrier synchronization class. More...
#include <csutil/threading/barrier.h>
Inheritance diagram for CS::Threading::Barrier:

Public Member Functions | |
Barrier (size_t maxCount) | |
Initialize barrier with set max count. | |
void | Reset () |
Reset a barrier for reuse. | |
bool | Wait () |
Wait for all threads to have called Wait. |
Detailed Description
Barrier synchronization class.A barrier is used to synchronize the execution streams of any number of threads. All threads calls Wait that will block until the set number of threads have called it.
Definition at line 37 of file barrier.h.
Constructor & Destructor Documentation
CS::Threading::Barrier::Barrier | ( | size_t | maxCount | ) | [inline] |
Member Function Documentation
void CS::Threading::Barrier::Reset | ( | ) | [inline] |
bool CS::Threading::Barrier::Wait | ( | ) | [inline] |
The documentation for this class was generated from the following file:
- csutil/threading/barrier.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8