Sleeping Wombat GUI  0.100
swGUI
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)
 
 ~ThreadsLatch ()=default
 
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.

Constructor & Destructor Documentation

sw::ThreadsLatch::ThreadsLatch ( uint16  numThreads)
explicit
sw::ThreadsLatch::~ThreadsLatch ( )
default

Member Function Documentation

void sw::ThreadsLatch::ArriveAndWait ( )

Member Data Documentation

std::condition_variable sw::ThreadsLatch::m_condVariable
private
std::mutex sw::ThreadsLatch::m_lock
private
uint16 sw::ThreadsLatch::m_remain
private

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