| Qore Programming Language Reference Manual 2.2.0

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