SemaphoreSlim.CurrentCount 속성

정의

SemaphoreSlim 개체에 들어갈 수 있는 남아 있는 스레드의 수를 가져옵니다.

public:
 property int CurrentCount { int get(); };
public int CurrentCount { get; }
member this.CurrentCount : int
Public ReadOnly Property CurrentCount As Integer

속성 값

Int32

세마포에 들어갈 수 있는 남아 있는 스레드의 수입니다.

설명

속성의 CurrentCount 초기 값은 클래스 생성자에 대한 호출에 SemaphoreSlim 의해 설정됩니다. 또는 WaitAsync 메서드에 대한 Wait 각 호출에 의해 감소되고 메서드에 대한 각 호출 Release 에 의해 증가됩니다.

적용 대상

추가 정보