C# 클래스 Renci.SshNet.Common.SemaphoreLight

Light implementation of SemaphoreSlim.
파일 보기 프로젝트 열기: sshnet/SSH.NET 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Release() 공개 메소드

Exits the SemaphoreLight once.
public Release ( ) : int
리턴 int

Release() 공개 메소드

Exits the SemaphoreLight a specified number of times.
public Release ( int releaseCount ) : int
releaseCount int The number of times to exit the semaphore.
리턴 int

SemaphoreLight() 공개 메소드

Initializes a new instance of the SemaphoreLight class, specifying the initial number of requests that can be granted concurrently.
is a negative number.
public SemaphoreLight ( int initialCount ) : System
initialCount int The initial number of requests for the semaphore that can be granted concurrently.
리턴 System

Wait() 공개 메소드

Blocks the current thread until it can enter the SemaphoreLight.
public Wait ( ) : void
리턴 void