API:System.SyncObjs.TEvent.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(EventAttributes: PSecurityAttributes; ManualReset,
InitialState: Boolean; const Name: string; UseCOMWait: Boolean = False); overload;
constructor Create(UseCOMWait: Boolean = False); overload;

C++

__fastcall TEvent(Winapi::Windows::PSecurityAttributes EventAttributes, bool ManualReset, bool InitialState, const System::UnicodeString Name, bool UseCOMWait)/* overload */;
__fastcall TEvent(bool UseCOMWait)/* overload */;

Properties

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

Description

Instantiates a THandleObject object.

System.SyncObjs.TEvent.Create inherits from System.SyncObjs.THandleObject.Create. All content below this line refers to System.SyncObjs.THandleObject.Create.

Instantiates a THandleObject object.

Call Create to create a THandleObject object.

Set the UseCOMWait parameter to ensure that when a thread is blocked and waiting for the object, any STA COM calls can be made back into this thread.

See Also