diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2198ec0e..4e9a571b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3140,3 +3140,7 @@ Zoran Turalija Stefan Braun for reporting an endless loop in cTextWrapper::Set() in case the given Width is smaller than one character + +Jochen Dolze + for changing cThread::SetIOPriority() from "best effort class" to "idle class" in order + to improve overall performance when an editing process is running diff --git a/HISTORY b/HISTORY index 228222e6..6d9f786f 100644 --- a/HISTORY +++ b/HISTORY @@ -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). diff --git a/thread.c b/thread.c index b16fc811..17e55b88 100644 --- a/thread.c +++ b/thread.c @@ -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; }