Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cMutex Class Reference

#include <thread.h>


Public Methods

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

Private Attributes

pthread_mutex_t mutex
pid_t lockingPid
int locked

Friends

class cCondVar


Constructor & Destructor Documentation

cMutex::cMutex void   
 

Definition at line 83 of file thread.c.

References locked, and lockingPid.

cMutex::~cMutex  
 

Definition at line 90 of file thread.c.


Member Function Documentation

void cMutex::Lock void   
 

Definition at line 95 of file thread.c.

References locked, and lockingPid.

Referenced by cThread::Lock(), cMutexLock::Lock(), cRingBuffer::Lock(), cRingBuffer::WaitForGet(), and cRingBuffer::WaitForPut().

void cMutex::Unlock void   
 

Definition at line 104 of file thread.c.

References locked, and lockingPid.

Referenced by cThread::Unlock(), cRingBuffer::Unlock(), cRingBuffer::WaitForGet(), cRingBuffer::WaitForPut(), and cMutexLock::~cMutexLock().


Friends And Related Function Documentation

friend class cCondVar [friend]
 

Definition at line 34 of file thread.h.


Field Documentation

int cMutex::locked [private]
 

Definition at line 38 of file thread.h.

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

pid_t cMutex::lockingPid [private]
 

Definition at line 37 of file thread.h.

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

pthread_mutex_t cMutex::mutex [private]
 

Definition at line 36 of file thread.h.

Referenced by cCondVar::TimedWait(), and cCondVar::Wait().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:44 2003 for VDR by doxygen1.3-rc2