9 #ifndef CPPBENCHMARK_BARRIER_H
10 #define CPPBENCHMARK_BARRIER_H
12 #include <condition_variable>
33 explicit Barrier(
int threads) noexcept;
51 std::condition_variable _cond;
Barrier synchronization primitive.
Barrier & operator=(const Barrier &)=delete
Barrier(Barrier &&)=delete
Barrier & operator=(Barrier &&)=delete
Barrier(int threads) noexcept
Default class constructor.
Barrier(const Barrier &)=delete
bool Wait() noexcept
Wait at the barrier until all other threads reach this barrier.
C++ Benchmark project definitions.