API:System.SyncObjs.TMutex.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 */;

Propriétés

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

Description

Instancie un objet THandleObject.

System.SyncObjs.TMutex.Create hérite de System.SyncObjs.THandleObject.Create. Tout le contenu en-dessous de cette ligne se réfère à System.SyncObjs.THandleObject.Create.

Instancie un objet THandleObject.

Appelez Create pour créer un objet THandleObject.

Définissez le paramètre UseCOMWait pour garantir que lorsqu'un thread est bloqué et en attente de l'objet, tous les rappels STA COM peuvent être effectués dans ce thread.

Voir aussi