System::Threading::Semaphore::Semaphore constructor

Semaphore::Semaphore(int, int) constructor

RTTI information.

System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount)
ParameterTypeDescription
initialCountintInitial count of active entries.
maximumCountintMaximum allwed entries count.

Remarks

Creates unnamed semaphore.

See Also

Semaphore::Semaphore(int, int, const String&) constructor

Creates named semaphore.

System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount, const String &name)
ParameterTypeDescription
initialCountintInitial count of active entries.
maximumCountintMaximum allwed entries count.
nameconst String&Semaphore name.

See Also

Semaphore::Semaphore(int, int, const String&, bool&) constructor

Creates named semaphore.

System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount, const String &name, bool &createdNew)
ParameterTypeDescription
initialCountintInitial count of active entries.
maximumCountintMaximum allwed entries count.
nameconst String&Semaphore name.
createdNewbool&Reference to variable which is set to true if semaphore was created and to false if existing one with same name was reused

See Also