cMutex Class Reference

#include <thread.h>

List of all members.

Public Member Functions

 cMutex (void)
 ~cMutex ()
void Lock (void)
void Unlock (void)

Private Attributes

pthread_mutex_t mutex
int locked

Friends

class cCondVar


Detailed Description

Definition at line 63 of file thread.h.


Constructor & Destructor Documentation

cMutex::cMutex ( void   ) 

Definition at line 174 of file thread.c.

References locked, and mutex.

cMutex::~cMutex (  ) 

Definition at line 183 of file thread.c.

References mutex.


Member Function Documentation

void cMutex::Lock ( void   ) 

Definition at line 188 of file thread.c.

References locked, and mutex.

Referenced by cTDT::cTDT(), cThread::Lock(), cMutexLock::Lock(), cRingBufferFrame::Lock(), cSkins::ProcessQueuedMessages(), and cSkins::QueueMessage().

void cMutex::Unlock ( void   ) 

Definition at line 194 of file thread.c.

References locked, and mutex.

Referenced by cTDT::cTDT(), cSkins::ProcessQueuedMessages(), cSkins::QueueMessage(), cThread::Unlock(), cRingBufferFrame::Unlock(), and cMutexLock::~cMutexLock().


Friends And Related Function Documentation

friend class cCondVar [friend]

Definition at line 64 of file thread.h.


Member Data Documentation

pthread_mutex_t cMutex::mutex [private]

Definition at line 66 of file thread.h.

Referenced by cMutex(), Lock(), cCondVar::TimedWait(), Unlock(), cCondVar::Wait(), and ~cMutex().

int cMutex::locked [private]

Definition at line 67 of file thread.h.

Referenced by cMutex(), Lock(), cCondVar::TimedWait(), Unlock(), and cCondVar::Wait().


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 20:20:38 2007 for VDR by  doxygen 1.5.3-20071008