vdr 2.6.1
|
#include <thread.h>
Public Member Functions | |
cIoThrottle (void) | |
~cIoThrottle () | |
void | Activate (void) |
void | Release (void) |
bool | Active (void) |
cIoThrottle (void) | |
~cIoThrottle () | |
void | Activate (void) |
void | Release (void) |
bool | Active (void) |
Static Public Member Functions | |
static bool | Engaged (void) |
static bool | Engaged (void) |
Private Attributes | |
bool | active |
Static Private Attributes | |
static cMutex | mutex |
static int | count = 0 |
Definition at line 267 of file include/vdr/thread.h.
cIoThrottle::cIoThrottle | ( | void | ) |
cIoThrottle::~cIoThrottle | ( | ) |
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 active, count, dsyslog, cMutex::Lock(), mutex, cThread::ThreadId(), and cMutex::Unlock().
Referenced by cRingBuffer::UpdatePercentage().
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.
|
inline |
Returns true if this I/O throttling object is currently active.
Definition at line 283 of file include/vdr/thread.h.
References active.
|
inline |
|
static |
Returns true if any I/O throttling object is currently active.
Definition at line 918 of file thread.c.
References count.
Referenced by cRemoveDeletedRecordingsThread::Action(), cVideoDirectoryScannerThread::ScanVideoDir(), cCuttingThread::Throttled(), and cDirCopier::Throttled().
|
static |
Returns true if any I/O throttling object is currently active.
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 active, count, dsyslog, cMutex::Lock(), mutex, cThread::ThreadId(), and cMutex::Unlock().
Referenced by cRingBuffer::UpdatePercentage(), and ~cIoThrottle().
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.
|
private |
Definition at line 271 of file include/vdr/thread.h.
Referenced by Activate(), Active(), cIoThrottle(), and Release().
|
staticprivate |
Definition at line 270 of file include/vdr/thread.h.
Referenced by Activate(), Engaged(), and Release().
|
staticprivate |
Definition at line 269 of file include/vdr/thread.h.
Referenced by Activate(), and Release().