メインメニューを開く

RAD Studio API Documentation β

System.SyncObjs.TLightweightSemaphore.CurrentCount

Delphi

property CurrentCount: Integer read FCurrentCount;

C++

__property int CurrentCount = {read=FCurrentCount, nodefault};

プロパティ

種類 可視性 ソース ユニット
property public
System.SyncObjs.pas
System.SyncObjs.hpp
System.SyncObjs TLightweightSemaphore

説明

セマフォを確保できるスレッドの数を示します。

CurrentCount は、Release メソッドが呼び出されるたびに増加し、スレッドが WaitFor メソッド内でセマフォを確保するたびに減少します。

関連項目