summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-12 10:27:18 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-12 10:27:18 +0200
commit3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5 (patch)
tree91c405ba6a099956101267da217b732d89d2944c /thread.h
parent103177a9e75396d18fbbe56a6fa993bb4bfe6263 (diff)
downloadvdr-3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5.tar.gz
vdr-3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5.tar.bz2
Additional 'emergency exit' in case channel switching doesn't work several times in a row
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index 8885fd46..bf9804d3 100644
--- a/thread.h
+++ b/thread.h
@@ -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);
};