diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-04-11 08:59:26 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-04-11 08:59:26 +0200 |
commit | 06f7c2d414e6c5be05c7308760adb84dd6bf14f5 (patch) | |
tree | a3bc4f8fca93678cc5dd51036f2306659d02074a | |
parent | 1b1dc6d77569582c05de049d399591dd13a9e24a (diff) | |
download | vdr-06f7c2d414e6c5be05c7308760adb84dd6bf14f5.tar.gz vdr-06f7c2d414e6c5be05c7308760adb84dd6bf14f5.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 | 3 | ||||
-rw-r--r-- | thread.c | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index d66934e5..83940ded 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3141,3 +3141,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,3 +7791,6 @@ Video Disk Recorder Revision History Udo Richter). - Fixed handling '/' and '~' in recording file names in case DirectoryEncoding is used (thanks to Lars Hanisch). +- 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 2.7.1.1 2013/04/11 08:59:26 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; } |