absl::Barrier::Barrier

Constructors

Synopses

Declared in <absl/synchronization/barrier.h>

Deleted copy constructor; Barrier is not copyable.

Barrier(Barrier const& other) = delete;
» more...

Constructs a barrier for a fixed number of participating threads.

explicit
Barrier(int num_threads);
» more...

Parameters

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