Semaphore Constructor

Semaphore Constructor

 

Initializes a new instance of the Semaphore class.

Namespace:   System.Threading
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSemaphore(Int32, Int32)

Initializes a new instance of the Semaphore class, specifying the initial number of entries and the maximum number of concurrent entries.

System_CAPS_pubmethodSemaphore(Int32, Int32, String)

Initializes a new instance of the Semaphore class, specifying the initial number of entries and the maximum number of concurrent entries, and optionally specifying the name of a system semaphore object.

System_CAPS_pubmethodSemaphore(Int32, Int32, String, Boolean)

Initializes a new instance of the Semaphore class, specifying the initial number of entries and the maximum number of concurrent entries, optionally specifying the name of a system semaphore object, and specifying a variable that receives a value indicating whether a new system semaphore was created.

System_CAPS_pubmethodSemaphore(Int32, Int32, String, Boolean, SemaphoreSecurity)

Initializes a new instance of the Semaphore class, specifying the initial number of entries and the maximum number of concurrent entries, optionally specifying the name of a system semaphore object, specifying a variable that receives a value indicating whether a new system semaphore was created, and specifying security access control for the system semaphore.

Return to top
Show:
© 2016 Microsoft