Mutex Class Reference

#include <dthread.h>

Public Member Functions

 Mutex (bool recursive=false)
 ~Mutex ()
bool trylock ()
bool lock ()
bool unlock ()

Private Attributes

pthread_mutex_t mutex

Friends

class CondVar

Detailed Description

Definition at line 75 of file dthread.h.


Constructor & Destructor Documentation

Mutex::Mutex ( bool  recursive = false  ) 

Definition at line 64 of file dthread-win.C.

References mutex.

Mutex::~Mutex (  ) 

Definition at line 69 of file dthread-win.C.

References mutex.


Member Function Documentation

bool Mutex::lock (  ) 

Definition at line 74 of file dthread-win.C.

References mutex.

Referenced by CondVar::lock(), and ScopeLock::ScopeLock().

bool Mutex::trylock (  ) 

Definition at line 118 of file dthread-unix.C.

References mutex.

Referenced by CondVar::trylock().

bool Mutex::unlock (  ) 

Definition at line 82 of file dthread-win.C.

References fprintf, and mutex.

Referenced by ScopeLock::unlock(), and CondVar::unlock().


Friends And Related Function Documentation

friend class CondVar [friend]

Definition at line 76 of file dthread.h.


Field Documentation

pthread_mutex_t Mutex::mutex [private]

Definition at line 78 of file dthread.h.

Referenced by lock(), Mutex(), trylock(), unlock(), CondVar::wait(), and ~Mutex().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1