From e53e43d2b85095ec24e89fb8721d9c92e13ed930 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 18 Oct 2003 12:29:08 +0200 Subject: The cThread class now accepts a 'Description' parameter --- thread.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'thread.h') 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); -- cgit v1.2.3