Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Public Member Functions | Private Attributes | List of all members
sw::ThreadsLatch Class Reference

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
 

Detailed Description

Can block multiple threads and wait for signal. ThreadsLatch is not reusable. Use ThreadsBarrier instead.


The documentation for this class was generated from the following files: