absl::Barrier::Barrier

Constructs a barrier for a fixed number of participating threads.

Synopsis

Declared in <absl/synchronization/barrier.h>

explicit
Barrier(int num_threads);

Parameters

NameDescription
num_threadsThe number of threads that will participate in the barrier.