diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-22 11:52:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-22 11:52:33 +0200 |
commit | 72c03260d77a0de52ed57992e374f26211fe2063 (patch) | |
tree | ea61de60ff2567caee18e1b4a2afbb563de56e6f /recorder.c | |
parent | e898a28258ac97cc15f875fb8fa9b274266f6d01 (diff) | |
download | vdr-72c03260d77a0de52ed57992e374f26211fe2063.tar.gz vdr-72c03260d77a0de52ed57992e374f26211fe2063.tar.bz2 |
The new class cIoThrottle is used to allow I/O intense threads to temporarily suspend their activities in case buffers run full
Diffstat (limited to 'recorder.c')
-rw-r--r-- | recorder.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recorder.c 2.15 2011/09/04 09:26:44 kls Exp $ + * $Id: recorder.c 2.16 2012/09/22 11:52:33 kls Exp $ */ #include "recorder.h" @@ -33,6 +33,7 @@ cRecorder::cRecorder(const char *FileName, const cChannel *Channel, int Priority ringBuffer = new cRingBufferLinear(RECORDERBUFSIZE, MIN_TS_PACKETS_FOR_FRAME_DETECTOR * TS_SIZE, true, "Recorder"); ringBuffer->SetTimeouts(0, 100); + ringBuffer->SetIoThrottle(); int Pid = Channel->Vpid(); int Type = Channel->Vtype(); |