Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_MutexSection Class Reference

#include <mutex.h>

List of all members.

Public Member Functions

 CL_MutexSection (CL_Mutex *mutex, bool lock=true)
 Construction:.
 ~CL_MutexSection ()
int get_lock_count () const
 Attributes:.
void lock ()
 Operations:.
bool try_lock ()
void unlock ()

Private Attributes

CL_Mutexmutex
 Implementation:.
int lock_count


Constructor & Destructor Documentation

CL_MutexSection::CL_MutexSection CL_Mutex mutex,
bool  lock = true
 

Construction:.

Definition at line 122 of file mutex.cpp.

References lock().

CL_MutexSection::~CL_MutexSection  ) 
 

Definition at line 128 of file mutex.cpp.

References lock_count, and unlock().


Member Function Documentation

int CL_MutexSection::get_lock_count  )  const
 

Attributes:.

Definition at line 137 of file mutex.cpp.

References lock_count.

void CL_MutexSection::lock  ) 
 

Operations:.

Definition at line 145 of file mutex.cpp.

References CL_Mutex::lock(), lock_count, and mutex.

Referenced by CL_MutexSection().

bool CL_MutexSection::try_lock  ) 
 

Definition at line 152 of file mutex.cpp.

References lock_count, mutex, and CL_Mutex::try_lock().

void CL_MutexSection::unlock  ) 
 

Definition at line 162 of file mutex.cpp.

References lock_count, mutex, and CL_Mutex::unlock().

Referenced by ~CL_MutexSection().


Member Data Documentation

int CL_MutexSection::lock_count [private]
 

Definition at line 91 of file mutex.h.

Referenced by get_lock_count(), lock(), try_lock(), unlock(), and ~CL_MutexSection().

CL_Mutex* CL_MutexSection::mutex [private]
 

Implementation:.

Definition at line 89 of file mutex.h.

Referenced by lock(), try_lock(), and unlock().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:17 2005 for npcore by  doxygen 1.4.1