vdr
2.2.0
|
#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 |
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().
|
inline |
|
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().
|
staticprivate |
Definition at line 170 of file thread.h.
Referenced by cThreadLock::Lock().
|
staticprivate |
Definition at line 169 of file thread.h.
Referenced by cThreadLock::Lock().