diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-04-10 15:38:29 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-04-10 15:38:29 +0200 |
commit | 0e4b404102b5220b649bf338988378bc6e72eb68 (patch) | |
tree | d75f37633871c48b70687fde567608e18078089a | |
parent | 89de3b6c01723c3747873feb0c024e170f86c016 (diff) | |
download | vdr-0e4b404102b5220b649bf338988378bc6e72eb68.tar.gz vdr-0e4b404102b5220b649bf338988378bc6e72eb68.tar.bz2 |
Changed cThread::SetIOPriority() from "best effort class" to "idle class" in order to improve overall performance when an editing process is running
-rw-r--r-- | CONTRIBUTORS | 4 | ||||
-rw-r--r-- | HISTORY | 5 | ||||
-rw-r--r-- | thread.c | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2198ec0e..4e9a571b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3140,3 +3140,7 @@ Zoran Turalija <zoran.turalija@gmail.com> Stefan Braun <louis.braun@gmx.de> for reporting an endless loop in cTextWrapper::Set() in case the given Width is smaller than one character + +Jochen Dolze <vdr@dolze.de> + for changing cThread::SetIOPriority() from "best effort class" to "idle class" in order + to improve overall performance when an editing process is running @@ -7791,7 +7791,7 @@ Video Disk Recorder Revision History - Added definitions for older DVB API versions, back until 5.0 (based on a patch from Udo Richter). -2013-04-09: Version 2.1.1 +2013-04-10: Version 2.1.1 - Fixed initializing cDevice::keepTracks. - Fixed an endless loop in cTextWrapper::Set() in case the given Width is smaller than @@ -7799,3 +7799,6 @@ Video Disk Recorder Revision History - Removed all "modified since version 1.6" markers from PLUGINS.html. - Added definitions for older DVB API versions, back until 5.0 (based on a patch from Udo Richter). +- Changed cThread::SetIOPriority() from "best effort class" to "idle class" in order to + improve overall performance when an editing process is running (thanks to Jochen + Dolze). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: thread.c 2.7 2013/02/22 14:52:49 kls Exp $ + * $Id: thread.c 3.1 2013/04/10 15:37:32 kls Exp $ */ #include "thread.h" @@ -229,7 +229,7 @@ void cThread::SetPriority(int Priority) void cThread::SetIOPriority(int Priority) { - if (syscall(SYS_ioprio_set, 1, 0, (Priority & 0xff) | (2 << 13)) < 0) // best effort class + if (syscall(SYS_ioprio_set, 1, 0, (Priority & 0xff) | (3 << 13)) < 0) // idle class LOG_ERROR; } |