diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-07-12 10:27:18 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-07-12 10:27:18 +0200 |
commit | 3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5 (patch) | |
tree | 91c405ba6a099956101267da217b732d89d2944c /thread.h | |
parent | 103177a9e75396d18fbbe56a6fa993bb4bfe6263 (diff) | |
download | vdr-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); }; |