A synchronization point that blocks threads until the required number of threads have reached it. More...
#include <Threading.h>
Public Member Functions | |
Barrier (uint32_t count) | |
Creates a barrier that waits for the specified number of threads. | |
void | wait () |
Wait at the barrier until all threads have reached it. | |
A synchronization point that blocks threads until the required number of threads have reached it.
Example:
|
inline |
Creates a barrier that waits for the specified number of threads.
count | The number of threads that must reach the barrier before any can continue |
void SC::Barrier::wait | ( | ) |
Wait at the barrier until all threads have reached it.