summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-03 14:08:28 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-03 14:08:28 +0200
commit2cd7928fc6dcffa61298d15d0bde21cd6d856868 (patch)
tree5adb7bca0b3dcf8c642c95b07491a84c25334bd4 /thread.c
parent3fc00d2211c732b2b9ecdead946bb9d3a0d9c621 (diff)
downloadvdr-2cd7928fc6dcffa61298d15d0bde21cd6d856868.tar.gz
vdr-2cd7928fc6dcffa61298d15d0bde21cd6d856868.tar.bz2
Removed the (no longer necessary) 'panic' stuff from cThread
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/thread.c b/thread.c
index c2068e0d..07c8f79a 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.23 2002/11/02 14:00:25 kls Exp $
+ * $Id: thread.c 1.24 2003/05/03 14:03:32 kls Exp $
*/
#include "thread.h"
@@ -114,8 +114,6 @@ void cMutex::Unlock(void)
// The signal handler is necessary to be able to use SIGIO to wake up any
// pending 'select()' call.
-time_t cThread::lastPanic = 0;
-int cThread::panicLevel = 0;
bool cThread::signalHandlerInstalled = false;
bool cThread::emergencyExitRequested = false;
@@ -191,25 +189,6 @@ void cThread::WakeUp(void)
kill(parentPid, SIGIO); // makes any waiting 'select()' call return immediately
}
-#define MAXPANICLEVEL 10
-
-void cThread::RaisePanic(void)
-{
- if (lastPanic > 0) {
- if (time(NULL) - lastPanic < 5)
- panicLevel++;
- else if (panicLevel > 0)
- panicLevel--;
- }
- lastPanic = time(NULL);
- if (panicLevel > MAXPANICLEVEL) {
- esyslog("ERROR: max. panic level exceeded");
- EmergencyExit(true);
- }
- else
- dsyslog("panic level: %d", panicLevel);
-}
-
bool cThread::EmergencyExit(bool Request)
{
if (!Request)