Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cMutexLock Class Reference

#include <thread.h>

Collaboration diagram for cMutexLock:

Collaboration graph
[legend]

Detailed Description

Lock mutex.

Definition at line 76 of file thread.h.

Public Methods

 cMutexLock (cMutex *Mutex=NULL)
 ~cMutexLock ()
bool Lock (cMutex *Mutex)

Private Attributes

cMutexmutex
bool locked


Constructor & Destructor Documentation

cMutexLock::cMutexLock cMutex   Mutex = NULL
 

Definition at line 223 of file thread.c.

References Lock(), locked, and mutex.

cMutexLock::~cMutexLock  
 

Definition at line 230 of file thread.c.

References locked, mutex, and cMutex::Unlock().


Member Function Documentation

bool cMutexLock::Lock cMutex   Mutex
 

Definition at line 236 of file thread.c.

References cMutex::Lock(), locked, and mutex.

Referenced by cMutexLock(), and cSIProcessor::Schedules().


Field Documentation

bool cMutexLock::locked [private]
 

Definition at line 88 of file thread.h.

Referenced by cMutexLock(), Lock(), and ~cMutexLock().

cMutex* cMutexLock::mutex [private]
 

cMutexLock can be used to easily set a lock on mutex and make absolutely sure that it will be unlocked when the block will be left. Several locks can be stacked, so a function that makes many calls to another function which uses cMutexLock may itself use a cMutexLock to make one longer lock instead of many short ones.

Definition at line 87 of file thread.h.

Referenced by cMutexLock(), Lock(), and ~cMutexLock().


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