mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added a short sleep to cTSBuffer::Action() to avoid high CPU usage
This commit is contained in:
parent
e2ba3d09a5
commit
834ac04c3b
@ -3458,3 +3458,4 @@ Aitugan Sarbassov <isarbassov@gmail.com>
|
||||
|
||||
Sergey Chernyavskiy <glenvt18@gmail.com>
|
||||
for reporting truncated date/time strings in the skins on multi-byte UTF-8
|
||||
for adding a short sleep to cTSBuffer::Action() to avoid high CPU usage
|
||||
|
2
HISTORY
2
HISTORY
@ -8879,3 +8879,5 @@ Video Disk Recorder Revision History
|
||||
- Avoiding some duplicate code and unnecessary work in nit.c (thanks to Ville
|
||||
Skyttä).
|
||||
- Added support for the systemd watchdog (thanks to Marc Perrudin),
|
||||
- Added a short sleep to cTSBuffer::Action() to avoid high CPU usage (thanks to
|
||||
Sergey Chernyavskiy).
|
||||
|
3
device.c
3
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user