Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Semaphore Constructor

Initializes a new instance of the Semaphore class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Semaphore(Int32, Int32) Initializes a new instance of the Semaphore class, specifying the maximum number of concurrent entries and optionally reserving some entries.
Public method Semaphore(Int32, Int32, String) Initializes a new instance of the Semaphore class, specifying the maximum number of concurrent entries, optionally reserving some entries for the calling thread, and optionally specifying the name of a system semaphore object.
Public method Semaphore(Int32, Int32, String, Boolean) Initializes a new instance of the Semaphore class, specifying the maximum number of concurrent entries, optionally reserving some entries for the calling thread, 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.
Public method Semaphore(Int32, Int32, String, Boolean, SemaphoreSecurity) Initializes a new instance of the Semaphore class, specifying the maximum number of concurrent entries, optionally reserving some entries for the calling thread, 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.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.