TwclManualResetEvent.Create(Boolean,string,Boolean) Method

Creates or opens a named event object.

Namespace: wclSync
protected
 class function Create(const ManualReset: Boolean; const Name: string;
 out Exist: Boolean): TwclEvent; overload;

Parameters

ManualReset
Type: Boolean

If this parameter is True, the method creates a manual-reset event object, which requires the use of the ResetEvent method to set the event state to nonsignaled. If this parameter is False, the method creates an auto-reset event object, and the system automatically resets the event state to nonsignaled after a single waiting thread has been released.

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

Type: TwclEvent

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