1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed high CPU load in 'Transfer Mode'

This commit is contained in:
Klaus Schmidinger 2002-12-14 13:37:01 +01:00
parent f3fdca49b9
commit 0f01d92106
3 changed files with 5 additions and 1 deletions

View File

@ -439,6 +439,7 @@ Oliver Endriss <o.endriss@gmx.de>
it kicked in it kicked in
for providing examples for 'diseqc.conf' for providing examples for 'diseqc.conf'
for improving deleting stale lock files for improving deleting stale lock files
for fixing high CPU load in 'Transfer Mode'
Reinhard Walter Buchner <rw.buchner@freenet.de> Reinhard Walter Buchner <rw.buchner@freenet.de>
for adding some satellites to 'sources.conf' for adding some satellites to 'sources.conf'

View File

@ -1886,3 +1886,4 @@ Video Disk Recorder Revision History
(thanks to Jaakko Hyvätti). (thanks to Jaakko Hyvätti).
- No longer stopping/restarting the DMX when switching audio channels (thanks to - No longer stopping/restarting the DMX when switching audio channels (thanks to
Sven Goethel). Sven Goethel).
- Fixed high CPU load in 'Transfer Mode' (thanks to Oliver Endriss).

View File

@ -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: transfer.c 1.7 2002/11/03 11:24:02 kls Exp $ * $Id: transfer.c 1.8 2002/12/14 13:14:53 kls Exp $
*/ */
#include "transfer.h" #include "transfer.h"
@ -109,6 +109,8 @@ void cTransfer::Action(void)
memmove(b, b + Count, r); memmove(b, b + Count, r);
} }
} }
else
usleep(1); // this keeps the CPU load low
} }
dsyslog("transfer thread ended (pid=%d)", getpid()); dsyslog("transfer thread ended (pid=%d)", getpid());