[#BloombergLP-bslmt-FastPostSemaphore-2constructor-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/FastPostSemaphore.adoc[FastPostSemaphore]::FastPostSemaphore :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bslmt_fastpostsemaphore.h>` Create a `FastPostSemaphore` object initially having a count of 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-0e.adoc[FastPostSemaphore](xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-0e.adoc[_» more..._]# Create a `FastPostSemaphore` object initially having a count of 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-09.adoc[FastPostSemaphore](std::chrono::steady_clock const& steadyClock); ---- [.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-09.adoc[_» more..._]# Create a `FastPostSemaphore` object initially having a count of 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-02e.adoc[FastPostSemaphore](std::chrono::system_clock const& systemClock); ---- [.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-02e.adoc[_» more..._]# Create a `FastPostSemaphore` object initially having the specified `count`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-00.adoc[FastPostSemaphore]( int count, xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-00.adoc[_» more..._]# Create a `FastPostSemaphore` object initially having the specified `count`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-029.adoc[FastPostSemaphore]( int count, std::chrono::steady_clock const& steadyClock); ---- [.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-029.adoc[_» more..._]# Create a `FastPostSemaphore` object initially having the specified `count`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-0d.adoc[FastPostSemaphore]( int count, std::chrono::system_clock const& systemClock); ---- [.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-0d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *clockType* | clock used to interpret `timedWait` timeouts | *steadyClock* | tag selecting the system monotonic clock | *systemClock* | tag selecting the system realtime clock | *count* | initial number of available resources |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#