[#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 `&lt;bslmt&lowbar;fastpostsemaphore&period;h&gt;`

Create a `FastPostSemaphore` object initially having a count of 0&period; Optionally specify a `clockType` indicating the type of the system clock against which the `bsls&colon;&colon;TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period; If `clockType` is not specified then the realtime system clock is used&period;


[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&colon;&colon;SystemClockType&colon;&colon;e&lowbar;REALTIME);
----

[.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create a `FastPostSemaphore` object initially having a count of 0&period; Use the monotonic system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-09.adoc[FastPostSemaphore](std::chrono::steady&lowbar;clock const&);
----

[.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-09.adoc[_» more&period;&period;&period;_]#

Create a `FastPostSemaphore` object initially having a count of 0&period; Use the realtime system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-02e.adoc[FastPostSemaphore](std::chrono::system&lowbar;clock const&);
----

[.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-02e.adoc[_» more&period;&period;&period;_]#

Create a `FastPostSemaphore` object initially having the specified `count`&period; Optionally specify a `clockType` indicating the type of the system clock against which the `bsls&colon;&colon;TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period; If `clockType` is not specified then the realtime system clock is used&period;


[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&colon;&colon;SystemClockType&colon;&colon;e&lowbar;REALTIME);
----

[.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a `FastPostSemaphore` object initially having the specified `count`&period; Use the monotonic system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-029.adoc[FastPostSemaphore](
    int count,
    std::chrono::steady&lowbar;clock const&);
----

[.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-029.adoc[_» more&period;&period;&period;_]#

Create a `FastPostSemaphore` object initially having the specified `count`&period; Use the realtime system clock as the clock against which the `absTime` timeouts passed to the `timedWait` methods are interpreted (see &lcub;Supported Clock&hyphen;Types&rcub; in the component&hyphen;level documentation)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-0d.adoc[FastPostSemaphore](
    int count,
    std::chrono::system&lowbar;clock const&);
----

[.small]#xref:BloombergLP/bslmt/FastPostSemaphore/2constructor-0d.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
