From the www.boost.org docs: A mutex (short for mutual-exclusion) object is used to serializes access to a resource shared between multiple threads. More...
#include <Mutex.hxx>
Classes | |
struct | ConditionVar |
Public Types | |
typedef Hidden::ScopedLock< Mutex > | ScopedLock |
Public Member Functions | |
Mutex () | |
~Mutex () | |
Friends | |
class | Hidden::LockOps< Mutex > |
class | Hidden::ScopedLock< Mutex > |
From the www.boost.org docs: A mutex (short for mutual-exclusion) object is used to serializes access to a resource shared between multiple threads.
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 44 of file Mutex.hxx.
friend class Hidden::LockOps< Mutex > [friend] |
friend class Hidden::ScopedLock< Mutex > [friend] |