mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed high CPU load in 'Transfer Mode'
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user