Method | Description | |
---|---|---|
Release ( ) : int |
Exits the SemaphoreLight once.
|
|
Release ( int releaseCount ) : int |
Exits the SemaphoreLight a specified number of times.
|
|
SemaphoreLight ( int initialCount ) : System |
Initializes a new instance of the SemaphoreLight class, specifying the initial number of requests that can be granted concurrently.
|
|
Wait ( ) : void |
Blocks the current thread until it can enter the SemaphoreLight.
|
public Release ( int releaseCount ) : int | ||
releaseCount | int | The number of times to exit the semaphore. |
return | int |
public SemaphoreLight ( int initialCount ) : System | ||
initialCount | int | The initial number of requests for the semaphore that can be granted concurrently. |
return | System |