API:System.SyncObjs.TMutex.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(UseCOMWait: Boolean = False); overload;
constructor Create(MutexAttributes: PSecurityAttributes; InitialOwner: Boolean; const Name: string; UseCOMWait: Boolean = False); overload;
constructor Create(DesiredAccess: Cardinal; InheritHandle: Boolean; const Name: string; UseCOMWait: Boolean = False); overload;

C++

__fastcall TMutex(bool UseCOMWait)/* overload */;
__fastcall TMutex(Winapi::Windows::PSecurityAttributes MutexAttributes, bool InitialOwner, const System::UnicodeString Name, bool UseCOMWait)/* overload */;
__fastcall TMutex(unsigned DesiredAccess, bool InheritHandle, const System::UnicodeString Name, bool UseCOMWait)/* overload */;

Properties

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

Description

Instantiates a THandleObject object.

System.SyncObjs.TMutex.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