 |
Qore Programming Language Reference Manual
0.9.4.2
|
103 int lock(timeout timeout_ms);
int trylock()
Acquires the lock only if it is not already held; returns 0 for success (lock acquired) or -1 if the ...
destructor()
Destroys the object.
nothing unlock()
Unlocks the Mutex object; wakes up one thread if any threads are blocked on this lock.
A class providing an implementation for a simple thread lock.
Definition: QC_Mutex.dox.h:37
copy()
Creates a new Mutex object, not based on the original.
The abstract base class for locks that support the internal API for use with the Condition class.
Definition: QC_AbstractSmartLock.dox.h:15
constructor()
Creates the Mutex object.
nothing lock()
Locks the Mutex object; blocks if the lock is already held.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3