diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-13 13:17:24 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-13 13:17:24 +0200 |
commit | ccb0add798961ce2fa24f625a00106cb0d3df709 (patch) | |
tree | 43e50aa8938a53236d90e260700e83296b26987d /sections.c | |
parent | 1921c7465fd72d8507b11230729754a17761c7e1 (diff) | |
download | vdr-ccb0add798961ce2fa24f625a00106cb0d3df709.tar.gz vdr-ccb0add798961ce2fa24f625a00106cb0d3df709.tar.bz2 |
Centralized 'thread active' handling
Diffstat (limited to 'sections.c')
-rw-r--r-- | sections.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sections.c 1.11 2005/05/29 11:43:17 kls Exp $ + * $Id: sections.c 1.12 2005/08/13 11:25:04 kls Exp $ */ #include "sections.h" @@ -44,7 +44,6 @@ cSectionHandler::cSectionHandler(cDevice *Device) { shp = new cSectionHandlerPrivate; device = Device; - active = false; statusCount = 0; on = false; waitForLock = false; @@ -54,7 +53,6 @@ cSectionHandler::cSectionHandler(cDevice *Device) cSectionHandler::~cSectionHandler() { - active = false; Cancel(3); cFilter *fi; while ((fi = filters.First()) != NULL) @@ -166,9 +164,8 @@ void cSectionHandler::SetStatus(bool On) void cSectionHandler::Action(void) { - active = true; SetPriority(19); - while (active) { + while (Active()) { Lock(); if (waitForLock) |