TwclAutoResetEvent.Create(Boolean) Method

Creates an unnamed event object.

Namespace: wclSync
protected
 class function Create(
 const ManualReset: 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.

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.