[#BloombergLP-bslmt-TimedSemaphoreImpl-04b-2constructor-03a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/TimedSemaphoreImpl-04b.adoc[TimedSemaphoreImpl<Platform::PthreadTimedSemaphore>]::TimedSemaphoreImpl :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bslmt_timedsemaphoreimpl_pthread.h>` Create a timed semaphore initially having a count of 0. [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::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/TimedSemaphoreImpl-04b/2constructor-0a.adoc[_» more..._]# Create a timed semaphore initially having the specified `count`. [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::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/TimedSemaphoreImpl-04b/2constructor-037.adoc[_» more..._]# == 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]#