summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-02-25 10:56:29 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-02-25 10:56:29 +0100
commitddb7f335674d668af3dd06bd61a0853b3af60df0 (patch)
tree5d52ba7939f6aa0b18cc01f546ce5c82ae8d3b80 /thread.h
parent50b14be807e1d3002246f359de83a8a18a0e6008 (diff)
downloadvdr-ddb7f335674d668af3dd06bd61a0853b3af60df0.tar.gz
vdr-ddb7f335674d668af3dd06bd61a0853b3af60df0.tar.bz2
Rewrite of shutdown handling; implemented cPlugin::WakeupTime(); SIGHUP forces reload; cThread::EmergencyExit() replaced by ShutdownHandler.RequestEmergencyExit()
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/thread.h b/thread.h
index dc45a83b..6eaa79a7 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.38 2007/01/07 14:44:38 kls Exp $
+ * $Id: thread.h 1.39 2007/02/24 16:13:28 kls Exp $
*/
#ifndef __THREAD_H
@@ -84,7 +84,6 @@ private:
cMutex mutex;
char *description;
static tThreadId mainThreadId;
- static bool emergencyExitRequested;
static void *StartThread(cThread *Thread);
protected:
void SetPriority(int Priority);
@@ -118,7 +117,6 @@ public:
///< If the thread is already running, nothing happens.
bool Active(void);
///< Checks whether the thread is still alive.
- static bool EmergencyExit(bool Request = false);
static tThreadId ThreadId(void);
static tThreadId IsMainThread(void) { return ThreadId() == mainThreadId; }
static void SetMainThreadId(void);
@@ -175,7 +173,9 @@ public:
// SystemExec() implements a 'system()' call that closes all unnecessary file
// descriptors in the child process.
+// With Detached=true, calls command in background and in a separate session,
+// with stdin connected to /dev/null.
-int SystemExec(const char *Command);
+int SystemExec(const char *Command, bool Detached = false);
#endif //__THREAD_H