[#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. Optionally specify a `clockType` indicating the type of the system clock against which the `bsls::TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see {Supported Clock‐Types} in the component documentation). If `clockType` is not specified then the realtime system clock is used. This method does not return normally unless there are sufficient system resources to construct the object. [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`. Optionally specify a `clockType` indicating the type of the system clock against which the `bsls::TimeInterval` `absTime` timeouts passed to the `timedWait` method are to be interpreted (see {Supported Clock‐Types} in the component documentation). If `clockType` is not specified then the realtime system clock is used. This method does not return normally unless there are sufficient system resources to construct the object. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#