[#BloombergLP-bslmt-Barrier] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::Barrier :relfileprefix: ../../ :mrdocs: This class defines a thread barrier. == Synopsis Declared in `<bslmt_barrier.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Barrier; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/Barrier/_04enum.adoc[`Unnamed enum`] | Status codes for timed wait operations. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/Barrier/2constructor-08.adoc[`Barrier`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bslmt/Barrier/2destructor.adoc[`~Barrier`] [.small]#[destructor]# | Wait for all signaled threads to unblock and destroy this barrier. | xref:BloombergLP/bslmt/Barrier/arrive.adoc[`arrive`] | Arrive on this barrier, signaling waiters if this is the last arrival. | xref:BloombergLP/bslmt/Barrier/clockType.adoc[`clockType`] | Return the clock type used for timeouts. | xref:BloombergLP/bslmt/Barrier/numArrivals.adoc[`numArrivals`] | Return the required number of arrivals before all waiting threads will unblock. | xref:BloombergLP/bslmt/Barrier/numThreads.adoc[`numThreads`] | Return the required number of arrivals before all waiting threads will unblock. | xref:BloombergLP/bslmt/Barrier/timedWait-01.adoc[`timedWait`] | Arrive and block until the required arrivals occur or `absTime` expires. | xref:BloombergLP/bslmt/Barrier/wait.adoc[`wait`] | Arrive and block until the required number of arrivals have occurred. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#