TwclMutex.Create(string,Boolean) Method

Creates or opens a named mutex object.

Namespace: wclSync
public
 class function Create(const Name: string;
 out Exist: Boolean): TwclMutex; reintroduce; overload;

Parameters

Name
Type: string

The mutex name.

Exist
Type: Boolean

If the method completed with success the parameter indicates whether a named mutex object was just created or existing was opened. True indicates that a mutex object was opened. False indicates that a new mutex object was created.

Return Value

Type: TwclMutex

If the method completed with success the returning value is a new TwclMutex class object. If the method failed the returning value is nil.