TwclMutex.Acquire(Cardinal) Method
Tries to acquire the mutex object during the given time-out interval.
public function Acquire(const Timeout: Cardinal): Cardinal; overload;
Parameters
- Timeout
- Type: Cardinal
The wait timeout value.
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 time-out elapsed the returning value is WCL_WAIT_TIMEOUT. If the wait failed the returning value is WCL_WAIT_FAILED.