#include <Mutex.hxx>
The Mutex concept, with TryMutex and TimedMutex refinements, formalize the requirements. A model that implements Mutex and its refinements has two states: locked and unlocked. Before using a shared resource, a thread locks a Boost.Threads mutex object (an object whose type is a model of Mutex or one of it's refinements), insuring thread-safe access to the shared resource. When use of the shared resource is complete, the thread unlocks the mutex object, allowing another thread to acquire the lock and use the shared resource.
Definition at line 48 of file Mutex.hxx.
Public Types | |
typedef Hidden::ScopedLock< Mutex > | ScopedLock |
Public Member Functions | |
Mutex () | |
~Mutex () | |
Friends | |
class | Hidden::LockOps< Mutex > |
class | Hidden::ScopedLock< Mutex > |
Classes | |
struct | ConditionVar |
CLAM::Mutex::Mutex | ( | ) |
CLAM::Mutex::~Mutex | ( | ) |
friend class Hidden::LockOps< Mutex > [friend] |
friend class Hidden::ScopedLock< Mutex > [friend] |