Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
QC_Mutex.dox.h
1 namespace Qore::Thread {
4
27 class Mutex : public AbstractSmartLock {
28
29 public:
31
36 constructor();
37
38 public:
40
45 copy();
46
47 public:
49
58 destructor();
59
60 public:
62
72 nothing lock();
73
74 public:
76
93 int lock(timeout timeout_ms);
94
95 public:
97
107 int trylock();
108
109 public:
111
118 nothing unlock();
119 };
120 };
Qore::Thread::Mutex::copy
copy()
Creates a new Mutex object, not based on the original.
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:13
Qore::Thread::Mutex
A class providing an implementation for a simple thread lock.
Definition: QC_Mutex.dox.h:27
Qore::Thread::Mutex::lock
nothing lock()
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::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::destructor
destructor()
Destroys the object.
Qore::Thread::Mutex::constructor
constructor()
Creates the Mutex object.