28#include <condition_variable>
45 std::condition_variable m_condition;
50 unsigned int m_threshold;
60 unsigned int m_generation;
63 Barrier(
const Barrier&) =
delete;
64 Barrier& operator=(
const Barrier&) =
delete;
The main header file of the library defining the namespace and basic data types.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
Barrier(unsigned int count)
Creates a new Barrier object.
void wait()
Makes the caller thread wait until enough threads are stopped by this method.