summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-10-18 12:29:08 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-10-18 12:29:08 +0200
commite53e43d2b85095ec24e89fb8721d9c92e13ed930 (patch)
treeed5b2d1614a146e986ad2fee4b8933b52cb160b5 /thread.h
parent15816ee8e4a1be96bba1da9199739f1666a87703 (diff)
downloadvdr-e53e43d2b85095ec24e89fb8721d9c92e13ed930.tar.gz
vdr-e53e43d2b85095ec24e89fb8721d9c92e13ed930.tar.bz2
The cThread class now accepts a 'Description' parameter
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/thread.h b/thread.h
index 65c0d7c9..ec4e1395 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.16 2003/10/18 10:29:25 kls Exp $
+ * $Id: thread.h 1.17 2003/10/18 12:13:10 kls Exp $
*/
#ifndef __THREAD_H
@@ -47,6 +47,7 @@ private:
pthread_t parentTid, childTid;
cMutex mutex;
bool running;
+ char *description;
static bool emergencyExitRequested;
static bool signalHandlerInstalled;
static void SignalHandler(int signum);
@@ -58,8 +59,9 @@ protected:
virtual void Action(void) = 0;
void Cancel(int WaitSeconds = 0);
public:
- cThread(void);
+ cThread(const char *Description = NULL);
virtual ~cThread();
+ void SetDescription(const char *Description, ...);
bool Start(void);
bool Active(void);
static bool EmergencyExit(bool Request = false);