summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-23 14:49:06 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-23 14:49:06 +0100
commit834ac04c3be267ecfb463a9741782bf315130404 (patch)
tree63d63020b9b1487e203d51c2b0a74e46fbbb5e1b /device.c
parente2ba3d09a5239a9da9b1344a8bd671b85b0f987b (diff)
downloadvdr-834ac04c3be267ecfb463a9741782bf315130404.tar.gz
vdr-834ac04c3be267ecfb463a9741782bf315130404.tar.bz2
Added a short sleep to cTSBuffer::Action() to avoid high CPU usage
Diffstat (limited to 'device.c')
-rw-r--r--device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/device.c b/device.c
index 174281f4..3c97b8ce 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 4.2 2015/09/05 11:42:17 kls Exp $
+ * $Id: device.c 4.3 2016/12/23 14:43:44 kls Exp $
*/
#include "device.h"
@@ -1768,6 +1768,7 @@ void cTSBuffer::Action(void)
break;
}
}
+ cCondWait::SleepMs(10); // avoids small chunks of data, which cause high CPU usage, esp. on ARM CPUs
}
}
}