38#ifndef __BASE_BARRIER_HH__
39#define __BASE_BARRIER_HH__
41#include <condition_variable>
unsigned generation
Generation of this barrier.
unsigned numLeft
Number of threads remaining for the current generation.
std::mutex bMutex
Mutex to protect access to numLeft and generation.
Barrier(unsigned _numWaiting)
unsigned numWaiting
Number of threads we should be waiting for before completing the barrier.
std::condition_variable bCond
Condition variable for waiting on barrier.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.