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=(Barrier &&)=delete
Barrier(Barrier &&)=delete
Barrier(const Barrier &)=delete
bool Wait() noexcept
Wait at the barrier until all other threads reach this barrier.
Barrier & operator=(const Barrier &)=delete
C++ Benchmark project definitions.