summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-04-11 08:59:26 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-04-11 08:59:26 +0200
commit06f7c2d414e6c5be05c7308760adb84dd6bf14f5 (patch)
treea3bc4f8fca93678cc5dd51036f2306659d02074a /thread.c
parent1b1dc6d77569582c05de049d399591dd13a9e24a (diff)
downloadvdr-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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index b16fc811..80fe588d 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 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;
}