This class defines a thread barrier.

Synopsis

Declared in <bslmt_barrier.h>

class Barrier;

Enums

Name

Description

Unnamed enum

Status codes for timed wait operations.

Member Functions

Name

Description

Barrier [constructor]

Constructors

~Barrier [destructor]

Wait for all signaled threads to unblock and destroy this barrier.

arrive

Arrive on this barrier, signaling waiters if this is the last arrival.

clockType

Return the clock type used for timeouts.

numArrivals

Return the required number of arrivals before all waiting threads will unblock.

numThreads

Return the required number of arrivals before all waiting threads will unblock.

timedWait

Arrive and block until the required arrivals occur or absTime expires.

wait

Arrive and block until the required number of arrivals have occurred.

Created with MrDocs