TwclMutex.Acquire Method

Acquires the mutex object.

Namespace: wclSync
public
 function Acquire: Cardinal; overload;

Return Value

Type: Cardinal

If the mutex acquired with success the returning value is WCL_WAIT_OBJECT_0. If the thread that owned that mutex has exited without releasing the mutex the returning value is WCL_WAIT_ABANDONED. If the wait failed the returning value is WCL_WAIT_FAILED.