[thread.barrier.general] (original) (raw)

32 Concurrency support library [thread]

32.9 Coordination types [thread.coord]

32.9.3 Barriers [thread.barrier]

32.9.3.1 General [thread.barrier.general]

1

#

A barrier is a thread coordination mechanism whose lifetime consists of a sequence of barrier phases, where each phase allows at most an expected number of threads to block until the expected number of threads arrive at the barrier.

[Note 1:

A barrier is useful for managing repeated tasks that are handled by multiple threads.

— _end note_]