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

Constructors

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/Semaphore/2constructor-05600.adoc[Semaphore]();
----

[.small]#xref:BloombergLP/bslmt/Semaphore/2constructor-05600.adoc[_» more&period;&period;&period;_]#

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/Semaphore/2constructor-0b.adoc[Semaphore](int count);
----

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


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