mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Changed cThread::SetIOPriority() from "best effort class" to "idle class" in order to improve overall performance when an editing process is running
This commit is contained in:
parent
89de3b6c01
commit
0e4b404102
@ -3140,3 +3140,7 @@ Zoran Turalija <zoran.turalija@gmail.com>
|
|||||||
Stefan Braun <louis.braun@gmx.de>
|
Stefan Braun <louis.braun@gmx.de>
|
||||||
for reporting an endless loop in cTextWrapper::Set() in case the given Width is smaller
|
for reporting an endless loop in cTextWrapper::Set() in case the given Width is smaller
|
||||||
than one character
|
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
|
||||||
|
5
HISTORY
5
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
|
- Added definitions for older DVB API versions, back until 5.0 (based on a patch from
|
||||||
Udo Richter).
|
Udo Richter).
|
||||||
|
|
||||||
2013-04-09: Version 2.1.1
|
2013-04-10: Version 2.1.1
|
||||||
|
|
||||||
- Fixed initializing cDevice::keepTracks.
|
- Fixed initializing cDevice::keepTracks.
|
||||||
- Fixed an endless loop in cTextWrapper::Set() in case the given Width is smaller than
|
- 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.
|
- 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
|
- Added definitions for older DVB API versions, back until 5.0 (based on a patch from
|
||||||
Udo Richter).
|
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
thread.c
4
thread.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "thread.h"
|
||||||
@ -229,7 +229,7 @@ void cThread::SetPriority(int Priority)
|
|||||||
|
|
||||||
void cThread::SetIOPriority(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;
|
LOG_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user