Public Member Functions | Private Member Functions | Private Attributes

cmn_MutexLock Class Reference
[Common, basic classes, functions and types]

cmn_MutexLock Automatic Mutex Class More...

#include <thread.h>

Collaboration diagram for cmn_MutexLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cmn_MutexLock (cmn_Mutex &a_mutex)
 cmn_MutexLock object requires a mutex object in constructor and does a Lock for that object.
 ~cmn_MutexLock ()
 The destructor ~cmn_MutexLock unlocks the mutex automatically.

Private Member Functions

 cmn_MutexLock (const cmn_MutexLock &)
cmn_MutexLockoperator= (const cmn_MutexLock &)

Private Attributes

cmn_Mutexm_mutex
 log_CLASSID_m

Detailed Description

cmn_MutexLock Automatic Mutex Class

Definition at line 92 of file thread.h.


Constructor & Destructor Documentation

cmn_MutexLock::cmn_MutexLock ( cmn_Mutex a_mutex  )  [inline]

cmn_MutexLock object requires a mutex object in constructor and does a Lock for that object.

Definition at line 97 of file thread.h.

                                      : m_mutex(a_mutex) {
        m_mutex.Lock();
    };

cmn_MutexLock::~cmn_MutexLock (  )  [inline]

The destructor ~cmn_MutexLock unlocks the mutex automatically.

Definition at line 102 of file thread.h.

                     {
        m_mutex.Unlock();
    };

cmn_MutexLock::cmn_MutexLock ( const cmn_MutexLock  )  [private]

Member Function Documentation

cmn_MutexLock& cmn_MutexLock::operator= ( const cmn_MutexLock  )  [private]

Member Data Documentation

Definition at line 110 of file thread.h.

Definition at line 93 of file thread.h.


The documentation for this class was generated from the following file: