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 an out parameter that indicates whether a new system object was created.
Namespace: RTX.Threading
Assembly: IntervalZero.RTX (in IntervalZero.RTX.dll) Version: 12.0.0.0 (12.0.0.0)
Syntax
Parameters
- initialCount
- Type:
System Int32
The initial number of requests for the semaphore that can be satisfied concurrently.
- maximumCount
- Type:
System Int32
The maximum number of requests for the semaphore that can be satisfied concurrently.
- name
- Type:
System String
The name of a system-wide named semaphore object.
- createdNew
- Type:
System Boolean
When this method returns, contains true if a new system object was created; otherwise false. This parameter is passed uninitialized.
See Also