Qore Programming Language Reference Manual 1.19.2
Loading...
Searching...
No Matches
QC_Mutex.dox.h
1
2namespace Qore {
4namespace Thread {
6
37class Mutex : public AbstractSmartLock {
38
39public:
41
47
48public:
50
56
57public:
59
69
70public:
72
82nothing lock();
83
84public:
86
103int lock(timeout timeout_ms);
104
105public:
107
118
119public:
121
128nothing unlock();
129};
130}
131}
The abstract base class for locks that support the internal API for use with the Condition class.
Definition: QC_AbstractSmartLock.dox.h:15
A class providing an implementation for a simple thread lock.
Definition: QC_Mutex.dox.h:37
nothing lock()
Locks the Mutex object; blocks if the lock is already held.
destructor()
Destroys the object.
int lock(timeout timeout_ms)
Locks the Mutex object; blocks if the lock is already held.
nothing unlock()
Unlocks the Mutex object; wakes up one thread if any threads are blocked on this lock.
copy()
Creates a new Mutex object, not based on the original.
int trylock()
Acquires the lock only if it is not already held; returns 0 for success (lock acquired) or -1 if the ...
constructor()
Creates the Mutex object.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2