summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-12-14 13:37:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-12-14 13:37:01 +0100
commit0f01d921066d81d0c6a4ddaa521048566cc28c80 (patch)
treeaf1c0cc315bc4e027f5dae39dd5263860958f75f
parentf3fdca49b95dc28b4e9601033649422b873ff440 (diff)
downloadvdr-0f01d921066d81d0c6a4ddaa521048566cc28c80.tar.gz
vdr-0f01d921066d81d0c6a4ddaa521048566cc28c80.tar.bz2
Fixed high CPU load in 'Transfer Mode'
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--transfer.c4
3 files changed, 5 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 86a7e3dc..8095e879 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -439,6 +439,7 @@ Oliver Endriss <o.endriss@gmx.de>
it kicked in
for providing examples for 'diseqc.conf'
for improving deleting stale lock files
+ for fixing high CPU load in 'Transfer Mode'
Reinhard Walter Buchner <rw.buchner@freenet.de>
for adding some satellites to 'sources.conf'
diff --git a/HISTORY b/HISTORY
index 20228ca0..1932905b 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1886,3 +1886,4 @@ Video Disk Recorder Revision History
(thanks to Jaakko Hyvätti).
- No longer stopping/restarting the DMX when switching audio channels (thanks to
Sven Goethel).
+- Fixed high CPU load in 'Transfer Mode' (thanks to Oliver Endriss).
diff --git a/transfer.c b/transfer.c
index 6d3ed780..d8975a92 100644
--- a/transfer.c
+++ b/transfer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* 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"
@@ -109,6 +109,8 @@ void cTransfer::Action(void)
memmove(b, b + Count, r);
}
}
+ else
+ usleep(1); // this keeps the CPU load low
}
dsyslog("transfer thread ended (pid=%d)", getpid());