System.SyncObjs.TLightweightEvent.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
constructor public
System.SyncObjs.pas
System.SyncObjs.hpp
System.SyncObjs TLightweightEvent

Description

Creates and initializes the event.

You can specify the initial state of the event. The default initial state of the event is non-signaled. You can also specify the number of spin loops if the processor is multicore.

The SpinCount parameter should not exceed 4096.

See Also