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 /thread.c | |
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
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |