Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Lock Class Reference

Mutex locker with automatic release. More...

#include <Lock.h>

Collaboration diagram for Lock:

Collaboration graph
[legend]
List of all members.

Public Methods

 Lock (Mutex &m)
 Locks the Mutex and stores a reference to it. More...

 ~Lock ()
 Releases the Mutex. More...


Detailed Description

Mutex locker with automatic release.


Constructor & Destructor Documentation

Lock::Lock Mutex   m [inline]
 

Locks the Mutex and stores a reference to it.

Precondition:
none.
Postcondition:
The mutex has been locked.

Lock::~Lock   [inline]
 

Releases the Mutex.

Precondition:
The mutex has been locked.
Postcondition:
The mutex is released.


The documentation for this class was generated from the following file:
This documentation was generated using doxygen. If you have any comments or additions please mail me.