vdr  2.2.0
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
cIoThrottle Class Reference

#include <thread.h>

Public Member Functions

 cIoThrottle (void)
 
 ~cIoThrottle ()
 
void Activate (void)
 
void Release (void)
 
bool Active (void)
 

Static Public Member Functions

static bool Engaged (void)
 

Private Attributes

bool active
 

Static Private Attributes

static cMutex mutex
 
static int count = 0
 

Detailed Description

Definition at line 167 of file thread.h.

Constructor & Destructor Documentation

cIoThrottle::cIoThrottle ( void  )

Definition at line 411 of file thread.c.

cIoThrottle::~cIoThrottle ( )

Definition at line 416 of file thread.c.

Member Function Documentation

void cIoThrottle::Activate ( void  )

Activates the global I/O throttling mechanism.

This function may be called any number of times, but only the first call after an inactive state will have an effect.

Definition at line 421 of file thread.c.

References dsyslog, cCondWait::mutex, and cThread::ThreadId().

Referenced by cRingBuffer::UpdatePercentage().

bool cIoThrottle::Active ( void  )
inline

Returns true if this I/O throttling object is currently active.

Definition at line 183 of file thread.h.

bool cIoThrottle::Engaged ( void  )
static

Returns true if any I/O throttling object is currently active.

Definition at line 443 of file thread.c.

Referenced by cRemoveDeletedRecordingsThread::Action(), cCuttingThread::Throttled(), and cDirCopier::Throttled().

void cIoThrottle::Release ( void  )

Releases the global I/O throttling mechanism.

This function may be called any number of times, but only the first call after an active state will have an effect.

Definition at line 432 of file thread.c.

References dsyslog, cCondWait::mutex, and cThread::ThreadId().

Referenced by cRingBuffer::UpdatePercentage().

Member Data Documentation

bool cIoThrottle::active
private

Definition at line 171 of file thread.h.

int cIoThrottle::count = 0
staticprivate

Definition at line 170 of file thread.h.

Referenced by cThreadLock::Lock().

cMutex cIoThrottle::mutex
staticprivate

Definition at line 169 of file thread.h.

Referenced by cThreadLock::Lock().


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