[#BloombergLP-bslmt-Barrier-2constructor-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Barrier.adoc[Barrier]::Barrier :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bslmt_barrier.h>` Create a barrier that requires the specified `numArrivals` to unblock. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/Barrier/2constructor-0c.adoc[Barrier]( int numArrivals, xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/Barrier/2constructor-0c.adoc[_» more..._]# Create a barrier that requires the specified `numArrivals` to unblock, using the monotonic clock. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/Barrier/2constructor-0a.adoc[Barrier]( int numArrivals, std::chrono::steady_clock const& steadyClock); ---- [.small]#xref:BloombergLP/bslmt/Barrier/2constructor-0a.adoc[_» more..._]# Create a barrier that requires the specified `numArrivals` to unblock, using the realtime clock. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/Barrier/2constructor-09.adoc[Barrier]( int numArrivals, std::chrono::system_clock const& systemClock); ---- [.small]#xref:BloombergLP/bslmt/Barrier/2constructor-09.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *numArrivals* | number of arrivals required to unblock the barrier | *clockType* | clock used to interpret `timedWait` timeouts | *steadyClock* | tag selecting the system monotonic clock | *systemClock* | tag selecting the system realtime clock |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#