[#BloombergLP-bslmt-TimedSemaphoreImpl-04b-2constructor-03a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/TimedSemaphoreImpl-04b.adoc[TimedSemaphoreImpl&lt;Platform::PthreadTimedSemaphore&gt;]::TimedSemaphoreImpl
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bslmt&lowbar;timedsemaphoreimpl&lowbar;pthread&period;h&gt;`

Create a timed semaphore initially having a count of 0&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/TimedSemaphoreImpl-04b/2constructor-0a.adoc[TimedSemaphoreImpl](xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls&colon;&colon;SystemClockType&colon;&colon;e&lowbar;REALTIME);
----

[.small]#xref:BloombergLP/bslmt/TimedSemaphoreImpl-04b/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Create a timed semaphore initially having the specified `count`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/TimedSemaphoreImpl-04b/2constructor-037.adoc[TimedSemaphoreImpl](
    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/TimedSemaphoreImpl-04b/2constructor-037.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *clockType*
| clock type used to interpret `timedWait` timeouts
| *count*
| initial count of the semaphore
|===


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