TwclManualResetEvent.Create(Boolean,string) Method

Creates or opens a named event object.

Namespace: wclSync
protected
 class function Create(const ManualReset: Boolean;
 const Name: string): 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.

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.