vdr 2.6.1
Public Member Functions | Private Attributes | Friends | List of all members
cMutex Class Reference

#include <thread.h>

Public Member Functions

 cMutex (void)
 
 ~cMutex ()
 
void Lock (void)
 
void Unlock (void)
 
 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 67 of file include/vdr/thread.h.

Constructor & Destructor Documentation

◆ cMutex() [1/2]

cMutex::cMutex ( void  )

Definition at line 208 of file thread.c.

References locked, and mutex.

◆ ~cMutex() [1/2]

cMutex::~cMutex ( )

Definition at line 217 of file thread.c.

References mutex.

◆ cMutex() [2/2]

cMutex::cMutex ( void  )

◆ ~cMutex() [2/2]

cMutex::~cMutex ( )

Member Function Documentation

◆ Lock() [1/2]

void cMutex::Lock ( void  )

◆ Lock() [2/2]

void cMutex::Lock ( void  )

◆ Unlock() [1/2]

void cMutex::Unlock ( void  )

◆ Unlock() [2/2]

void cMutex::Unlock ( void  )

Friends And Related Function Documentation

◆ cCondVar

cCondVar
friend

Definition at line 68 of file include/vdr/thread.h.

Member Data Documentation

◆ locked

int cMutex::locked
private

Definition at line 71 of file include/vdr/thread.h.

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

◆ mutex

pthread_mutex_t cMutex::mutex
private

Definition at line 70 of file include/vdr/thread.h.

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


The documentation for this class was generated from the following files: