diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-18 12:29:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-18 12:29:08 +0200 |
commit | e53e43d2b85095ec24e89fb8721d9c92e13ed930 (patch) | |
tree | ed5b2d1614a146e986ad2fee4b8933b52cb160b5 /thread.h | |
parent | 15816ee8e4a1be96bba1da9199739f1666a87703 (diff) | |
download | vdr-e53e43d2b85095ec24e89fb8721d9c92e13ed930.tar.gz vdr-e53e43d2b85095ec24e89fb8721d9c92e13ed930.tar.bz2 |
The cThread class now accepts a 'Description' parameter
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 6 |
1 files changed, 4 insertions, 2 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.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); |