Constructs a barrier for a fixed number of participating threads.

Synopsis

Declared in <absl/synchronization/barrier.h>

explicit
Barrier(int num_threads);

Parameters

Name

Description

num_threads

The number of threads that will participate in the barrier.

Created with MrDocs