18 #ifndef AbstractMutex_h 19 #define AbstractMutex_h 51 virtual void lock() = 0;
An abstract class for encapsulating mutex implementations.
AbstractMutex & myLock
The mutex to lock.
virtual ~AbstractMutex()
Destructor.
virtual void lock()=0
Locks the mutex.
ScopedLocker & operator=(const ScopedLocker &)
Invalidated assignment operator.
A mutex encapsulator which locks/unlocks the given mutex on construction/destruction, respectively.
virtual void unlock()=0
Unlocks the mutex.
~ScopedLocker()
Destructor Unlocks the mutex.
AbstractMutex()
Constructor.
ScopedLocker(AbstractMutex &lock)
Constructor.