All Classes Namespaces Functions Variables Groups Pages
QC_Mutex.dox.h
namespace Qore::Thread {
class Mutex : public AbstractSmartLock {
public:
constructor();
public:
copy();
public:
destructor();
public:
nothing lock();
public:
int lock(timeout timeout_ms);
public:
int trylock();
public:
nothing unlock();
};
};
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:35
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.