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

CP_MutexLock Class Reference

Helper class for locking and an unlocking a mutex. More...

Inheritance diagram for CP_MutexLock:

CP_NoCopy List of all members.

Public Member Functions

 CP_MutexLock (CP_Mutex &m)
 ~CP_MutexLock ()

Private Attributes

CP_Mutexm_

Detailed Description

Locks the specified mutex in it's constructor and unlocks it again in the destructor. Very helpful when working with exceptions and multiple return paths, since you won't ever forget to unlock that mutex.


Constructor & Destructor Documentation

CP_MutexLock::CP_MutexLock CP_Mutex m  )  [explicit]
 

CP_MutexLock::~CP_MutexLock  ) 
 


Member Data Documentation

CP_Mutex& CP_MutexLock::m_ [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Sep 20 20:21:53 2005 for CPLAT_MacOS by  doxygen 1.4.0