API:System.SyncObjs.TMutex.Create

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

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

プロパティ

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

説明

THandleObject オブジェクトをインスタンス化します。

System.SyncObjs.TMutex.Create は System.SyncObjs.THandleObject.Create を継承しています。以下の内容はすべて System.SyncObjs.THandleObject.Create を参照しています。

THandleObject オブジェクトをインスタンス化します。

Create を呼び出すと、THandleObject オブジェクトを作成することができます。

UseCOMWait パラメータを設定すると、スレッドがブロックされてオブジェクトを待っているときに発生した STA COM 呼び出しをこのスレッドに戻すことができます。

関連項目