CMutex Class Reference

wrapper class for the Mutual-Exclusion (Mutex) mechanism More...

#include <mutex.H>

Inheritance diagram for CMutex:

Inheritance graph
[legend]
Collaboration diagram for CMutex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CMutex ()
 ~CMutex ()
void lock ()
bool trylock ()
void unlock ()

Private Attributes

pthread_mutex_t mutex


Detailed Description

wrapper class for the Mutual-Exclusion (Mutex) mechanism

Definition at line 29 of file mutex.H.


Constructor & Destructor Documentation

CMutex::CMutex (  )  [inline]

Definition at line 34 of file mutex.H.

References mutex.

CMutex::~CMutex (  )  [inline]

Definition at line 38 of file mutex.H.

References cerr, std::cerr, endl(), std::endl(), exit(), and mutex.

Here is the call graph for this function:


Member Function Documentation

void CMutex::lock (  )  [inline]

Definition at line 51 of file mutex.H.

Referenced by ExitManager::cancel_registered_threads(), CClientDynamicFactorFetcher::fetch(), CServerDynamicFactorRelations::insert(), statistical_data::CClientStats::lock(), CServerDynamicFactorRelations::monitoredSize(), CServerDynamicFactorRelations::operator[](), Cprocess_clients::process_data_stream(), ExitManager::register_cancel(), statistical_data::StatusReport(), ExitManager::StopFactorization(), CClientDynamicFactorFetcher::THREAD_fetch_DynamicFactors(), ExitManager::unregister_cancel(), and statistical_data::XML_StatusReport().

bool CMutex::trylock (  )  [inline]

Definition at line 65 of file mutex.H.

void CMutex::unlock (  )  [inline]

Definition at line 82 of file mutex.H.

Referenced by ExitManager::cancel_registered_threads(), CServerDynamicFactorRelations::insert(), CServerDynamicFactorRelations::monitoredSize(), CServerDynamicFactorRelations::operator[](), Cprocess_clients::process_data_stream(), ExitManager::register_cancel(), CConditionalUnlockMutexAtDestruction::set_condition(), statistical_data::StatusReport(), CClientDynamicFactorFetcher::THREAD_fetch_DynamicFactors(), statistical_data::CClientStats::unlock(), ExitManager::unregister_cancel(), and statistical_data::XML_StatusReport().


Member Data Documentation

pthread_mutex_t CMutex::mutex [private]

Definition at line 32 of file mutex.H.

Referenced by CMutex(), and ~CMutex().


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