[#BloombergLP-bslmt-TimedSemaphore-2constructor-0a1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/TimedSemaphore.adoc[TimedSemaphore]::TimedSemaphore
:relfileprefix: ../../../
:mrdocs:

Create a timed semaphore 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; This method does not return normally unless there are sufficient system resources to construct the object&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;timedsemaphore&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
TimedSemaphore(std::chrono::system&lowbar;clock const&);
----


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