xHarbour Reference Documentation > Function Reference |
Resumes a single thread blocked by a particular Mutex.
Notify( <pMutexHandle>, [<xValue>] ) --> NIL
The function returns always NIL.
Function Notify() sends a notification to the next thread having subscribed to a Mutex. The second parameter <xValue> defines the return value for the function Subscribe() being executed in a second thread. If more than one thread have subscribed to the Mutex <pMutexHandle>, the operating system selects the thread to resume exexuting program code. It is not possible to notify a particular thread waiting for a Mutex.
See also: | GetCurrentThread(), GetThreadID(), HB_MutexCreate(), HB_MutexLock(), NotifyAll(), StartThread(), Subscribe(), SubscribeNow() |
Category: | Multi-threading functions , Mutex functions , xHarbour extensions |
Source: | vm\thread.c |
LIB: | xhbmt.lib |
DLL: | xhbmtdll.dll |
http://www.xHarbour.com