TwclEvent.WaitOne(Cardinal) Method

Waits until the object is in the signaled state or the time-out interval elapses.

Namespace: wclSync
public
 function WaitOne(const Timeout: Cardinal): Cardinal; overload; override;

Parameters

Timeout
Type: Cardinal

The wait timeout value.

Return Value

Type: Cardinal

If the wait completed with success the returning value is WCL_WAIT_OBJECT_0. If the time-out elapsed the returning value is WCL_WAIT_TIMEOUT. If the wait failed the returning value is WCL_WAIT_FAILED.

Overrides

TwclWaitableSyncObject.WaitOne(Cardinal)