Sleeping Wombat Common Library
0.50.0
swCommonLibrary
|
Can block multiple threads and wait for signal. ThreadsLatch is not reusable. Use ThreadsBarrier instead. More...
#include <ThreadsLatch.h>
Public Member Functions | |
ThreadsLatch (uint16 numThreads) | |
void | ArriveAndWait () |
Private Attributes | |
std::mutex | m_lock |
std::condition_variable | m_condVariable |
uint16 | m_remain |
Can block multiple threads and wait for signal. ThreadsLatch is not reusable. Use ThreadsBarrier instead.