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

#include <thread.h>

Collaboration diagram for cIoThrottle:
[legend]

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 267 of file thread.h.

Constructor & Destructor Documentation

cIoThrottle::cIoThrottle ( void  )

Definition at line 886 of file thread.c.

cIoThrottle::~cIoThrottle ( )

Definition at line 891 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 896 of file thread.c.

References dsyslog, 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 283 of file thread.h.

bool cIoThrottle::Engaged ( void  )
static

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

Definition at line 918 of file thread.c.

Referenced by cRemoveDeletedRecordingsThread::Action(), cVideoDirectoryScannerThread::ScanVideoDir(), 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 907 of file thread.c.

References dsyslog, and cThread::ThreadId().

Referenced by cRingBuffer::UpdatePercentage().

Member Data Documentation

bool cIoThrottle::active
private

Definition at line 271 of file thread.h.

int cIoThrottle::count = 0
staticprivate

Definition at line 270 of file thread.h.

Referenced by cStateKey::StateChanged().

cMutex cIoThrottle::mutex
staticprivate

Definition at line 269 of file thread.h.

Referenced by cStateKey::StateChanged().


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