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

Create a semaphore initially having the specified `count`&period; This method does not return normally unless there are sufficient system resources to construct the object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
Semaphore(int count);
----


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