BloombergLP::bslmt::Semaphore::Semaphore

Create a semaphore initially having the specified count.

Synopsis

Declared in <bslmt_semaphore.h>

explicit
Semaphore(int count);

Description

This method does not return normally unless there are sufficient system resources to construct the object.

Parameters

NameDescription
countinitial count of the semaphore