TwclAutoResetEvent.Create(string,Boolean) Method

Creates or opens an auto-reset named event object.

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

Parameters

Name
Type: string

The event name.

Exist
Type: Boolean

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

Return Value

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