Additional 'emergency exit' in case channel switching doesn't work several times in a row

This commit is contained in:
Klaus Schmidinger
2001-07-12 10:27:18 +02:00
parent 103177a9e7
commit 3d2cf4e12a
4 changed files with 33 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: thread.h 1.5 2001/05/25 09:36:27 kls Exp $
* $Id: thread.h 1.6 2001/06/27 11:22:04 kls Exp $
*/
#ifndef __THREAD_H
@@ -33,6 +33,8 @@ private:
pid_t parentPid, threadPid, lockingPid;
int locked;
bool running;
static time_t lastPanic;
static int panicLevel;
static bool emergencyExitRequested;
static bool signalHandlerInstalled;
static void SignalHandler(int signum);
@@ -48,6 +50,7 @@ public:
virtual ~cThread();
bool Start(void);
bool Active(void);
static void RaisePanic(void);
static bool EmergencyExit(bool Request = false);
};