Semaphore()

Semaphore::Semaphore(int, int) constructor

Creates unnamed semaphore.

System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount)

Arguments

ParameterTypeDescription
initialCountintInitial count of active entries.
maximumCountintMaximum allwed entries count.

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

Creates named semaphore.

System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount, const String &name)

Arguments

ParameterTypeDescription
initialCountintInitial count of active entries.
maximumCountintMaximum allwed entries count.
nameconst String&Semaphore name.

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

Creates named semaphore.

System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount, const String &name, bool &createdNew)

Arguments

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