[#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 `<bslmt_semaphore.h>` Create a semaphore initially having a count of 0. This method does not return normally unless there are sufficient system resources to construct the object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/Semaphore/2constructor-05600.adoc[Semaphore](); ---- [.small]#xref:BloombergLP/bslmt/Semaphore/2constructor-05600.adoc[_» more..._]# Create a semaphore initially having the specified `count`. 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/Semaphore/2constructor-0b.adoc[Semaphore](int count); ---- [.small]#xref:BloombergLP/bslmt/Semaphore/2constructor-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#