Representation of a barrier. More...
#include <ogdf/basic/Barrier.h>
Public Member Functions | |
Barrier (uint32_t numThreads) | |
Creates a barrier for a group of numThreads threads. | |
void | threadSync () |
Synchronizes the threads in the group. | |
Private Attributes | |
std::condition_variable | m_allThreadsReachedSync |
uint32_t | m_numThreadsReachedSync |
number of htreads that reached current synchronization point. | |
std::mutex | m_numThreadsReachedSyncLock |
uint32_t | m_syncNumber |
number of current synchronization point. | |
uint32_t | m_threadCount |
the number of threads in the group. | |
Representation of a barrier.
A barrier is used for synchronizing threads. A barrier for a group of threads means that all threads in the group must have reached the barrier before any of the threads may proceed executing code after the barrier.
|
inlineexplicit |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |