xHarbour Reference Documentation > Function Reference |
Tries to obtain a lock on a Mutex with timeout.
HB_MutexTimeoutLock( <pMutexHandle> , ; <nWaitMilliSecs> ) --> lSuccess
The function returns .T. (true) when the Mutex is locked within the timeout period, and .F. (false) when no lock is obtained.
The function works like HB_MutexLock() but accepts as second parameter a timeout value. The function returns when either a lock is obtained on the Mutex, or the timeout period has expired. The return value indicates if the current thread has obtained the lock.
See also: | GetCurrentThread(), GetThreadID(), HB_MutexCreate(), HB_MutexTimeoutLock(), HB_MutexTryLock(), HB_MutexUnlock(), Notify(), StartThread(), Subscribe() |
Category: | Multi-threading functions , Mutex functions , xHarbour extensions |
Source: | vm\thread.c |
LIB: | xhbmt.lib |
DLL: | xhbmtdll.dll |
http://www.xHarbour.com