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 /dvbdevice.c | |
parent | 1921c7465fd72d8507b11230729754a17761c7e1 (diff) | |
download | vdr-ccb0add798961ce2fa24f625a00106cb0d3df709.tar.gz vdr-ccb0add798961ce2fa24f625a00106cb0d3df709.tar.bz2 |
Centralized 'thread active' handling
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 8a25adb4..d81090ca 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 1.131 2005/06/19 11:00:43 kls Exp $ + * $Id: dvbdevice.c 1.132 2005/08/13 11:40:46 kls Exp $ */ #include "dvbdevice.h" @@ -76,7 +76,6 @@ private: cCiHandler *ciHandler; cChannel channel; const char *diseqcCommands; - bool active; bool useCa; time_t startTime; eTunerStatus tunerStatus; @@ -101,7 +100,6 @@ cDvbTuner::cDvbTuner(int Fd_Frontend, int CardIndex, fe_type_t FrontendType, cCi frontendType = FrontendType; ciHandler = CiHandler; diseqcCommands = NULL; - active = false; useCa = false; tunerStatus = tsIdle; startTime = time(NULL); @@ -113,7 +111,6 @@ cDvbTuner::cDvbTuner(int Fd_Frontend, int CardIndex, fe_type_t FrontendType, cCi cDvbTuner::~cDvbTuner() { - active = false; tunerStatus = tsIdle; newSet.Signal(); Cancel(3); @@ -294,8 +291,7 @@ bool cDvbTuner::SetFrontend(void) void cDvbTuner::Action(void) { dvb_frontend_event event; - active = true; - while (active) { + while (Active()) { Lock(); if (tunerStatus == tsSet) { while (GetFrontendEvent(event)) |