Can block multiple threads and wait for signal. ThreadsBarrier is reusable.
More...
#include <ThreadsBarrier.h>
Can block multiple threads and wait for signal. ThreadsBarrier is reusable.
Implementation based on http://stackoverflow.com/questions/24465533/implementing-boostbarrier-in-c11
- Todo:
- Implement
sw::ThreadsBarrier::ThreadsBarrier |
( |
uint16 |
numThreads | ) |
|
|
explicit |
sw::ThreadsBarrier::~ThreadsBarrier |
( |
| ) |
|
|
default |
void sw::ThreadsBarrier::ArriveAndWait |
( |
| ) |
|
std::condition_variable sw::ThreadsBarrier::m_condVariable |
|
private |
Size sw::ThreadsBarrier::m_generation |
|
private |
std::mutex sw::ThreadsBarrier::m_lock |
|
private |
const uint32 sw::ThreadsBarrier::m_numThreads |
|
private |
uint32 sw::ThreadsBarrier::m_remain |
|
private |
The documentation for this class was generated from the following files: