System.SyncObjs.TLightweightEvent.Create

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

Delphi

constructor Create; overload;
constructor Create(InitialState: Boolean); overload;
constructor Create(InitialState: Boolean; SpinCount: Integer); overload;

C++

__fastcall TLightweightEvent(void)/* overload */;
__fastcall TLightweightEvent(bool InitialState)/* overload */;
__fastcall TLightweightEvent(bool InitialState, int SpinCount)/* overload */;

プロパティ

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

説明

イベントを作成および初期化します。

ユーザーは、イベントの初期状態を指定できます。イベントのデフォルトの初期状態は、非シグナル状態です。プロセッサがマルチコアの場合には、スピンループの回数も指定できます。

SpinCount パラメータは、4096 を超えては指定できません。

関連項目