diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-14 13:37:01 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-12-14 13:37:01 +0100 |
commit | 0f01d921066d81d0c6a4ddaa521048566cc28c80 (patch) | |
tree | af1c0cc315bc4e027f5dae39dd5263860958f75f /transfer.c | |
parent | f3fdca49b95dc28b4e9601033649422b873ff440 (diff) | |
download | vdr-0f01d921066d81d0c6a4ddaa521048566cc28c80.tar.gz vdr-0f01d921066d81d0c6a4ddaa521048566cc28c80.tar.bz2 |
Fixed high CPU load in 'Transfer Mode'
Diffstat (limited to 'transfer.c')
-rw-r--r-- | transfer.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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()); |