SemaphoreSlim.CurrentCount SemaphoreSlim.CurrentCount SemaphoreSlim.CurrentCount SemaphoreSlim.CurrentCount Property

定義

SemaphoreSlim オブジェクトに入る、残りのスレッド数を取得します。Gets the number of remaining threads that can enter the SemaphoreSlim object.

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

プロパティ値

セマフォに入る、残りのスレッド数。The number of remaining threads that can enter the semaphore.

注釈

初期値、CurrentCountプロパティへの呼び出しで設定されて、SemaphoreSlimクラスのコンス トラクター。The initial value of the CurrentCount property is set by the call to the SemaphoreSlim class constructor. 呼び出しごとに減少、WaitまたはWaitAsyncメソッドを呼び出すたびに増分される、Releaseメソッド。It is decremented by each call to the Wait or WaitAsync method, and incremented by each call to the Release method.

適用対象

こちらもご覧ください