Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Autolock Class Reference

#include <MNMutex.h>

Collaboration diagram for Autolock:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Autolock (MNDebugMutex &mx)
 ~Autolock ()

Detailed Description

This simple class allows the locking of a class-wide, object-wide or system-wide mutex for the duration of a code block. The C++ scoping rules for the calling of the destructor at the end of the block in which such an autolock object is constructed. The nice thing about wrapping a mutex with an autolock is that you don't have to worry about all those intermediate returns in your code any more. The autolocks object will always be called, and your mutex is released.


Constructor & Destructor Documentation

Autolock::Autolock MNDebugMutex mx  )  [inline]
 

Autolock::~Autolock  )  [inline]
 


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:35:51 2005 for Komssys by doxygen 1.3.8