CUnlockMutexAtDestruction Class Reference

#include <mutex.H>

Inheritance diagram for CUnlockMutexAtDestruction:

Inheritance graph
[legend]
Collaboration diagram for CUnlockMutexAtDestruction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CUnlockMutexAtDestruction (CMutex &myMutex)
 ~CUnlockMutexAtDestruction ()

Private Attributes

CMutexmutex


Detailed Description

The CUnlockMutexAtDestruction registers a mutex on construction and unlocks it at destruction. It can be used to guarantee, that the registered mutex is unlocked after the critical section protected by this mutex is left (regardless, whether by a normal ending of the block, a return call or because an exception is thrown).

Definition at line 110 of file mutex.H.


Constructor & Destructor Documentation

CUnlockMutexAtDestruction::CUnlockMutexAtDestruction ( CMutex myMutex  )  [inline]

Definition at line 115 of file mutex.H.

CUnlockMutexAtDestruction::~CUnlockMutexAtDestruction (  )  [inline]

Definition at line 116 of file mutex.H.


Member Data Documentation

CMutex& CUnlockMutexAtDestruction::mutex [private]

Definition at line 113 of file mutex.H.


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 23:31:31 2007 for Qsieve by  doxygen 1.5.4