System.SyncObjs.TLightweightEvent.SpinCount

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property SpinCount: Integer read GetSpinCount;

C++

__property int SpinCount = {read=GetSpinCount, nodefault};

プロパティ

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

説明

WaitFor 関数内でのスピンループの数を示します。

WaitFor 関数は、呼び出しているスレッドの即時ブロックを避けるため、一定数のCPU 周期をスピンループで待機します。

プロセッサがマルチコアの場合には、WaitFor 関数内で、スピンループの回数を指定できます。

関連項目