The cThread constructor now has an additional boolean parameter that can be set to true to have this thread run at a lower priority

This commit is contained in:
Klaus Schmidinger
2012-10-04 12:32:31 +02:00
parent 5a407d0e68
commit 1e9b16d20b
7 changed files with 27 additions and 21 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: sections.c 2.1 2012/08/26 12:53:39 kls Exp $
* $Id: sections.c 2.2 2012/10/04 12:21:59 kls Exp $
*/
#include "sections.h"
@@ -40,7 +40,7 @@ public:
// --- cSectionHandler -------------------------------------------------------
cSectionHandler::cSectionHandler(cDevice *Device)
:cThread("section handler")
:cThread("section handler", true)
{
shp = new cSectionHandlerPrivate;
device = Device;
@@ -164,7 +164,6 @@ void cSectionHandler::SetStatus(bool On)
void cSectionHandler::Action(void)
{
SetPriority(19);
while (Running()) {
Lock();