summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-12-19 10:58:20 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-12-19 10:58:20 +0100
commit9a8ef2b6c26aefe51e33db804a75ff5cfdb592f4 (patch)
tree155b9cbb8af3dad7b82f7c9e7cb103bd30b8e0c9 /thread.h
parentf5b1a74056a865d406ba8efab4ae15c45eebf6b9 (diff)
downloadvdr-9a8ef2b6c26aefe51e33db804a75ff5cfdb592f4.tar.gz
vdr-9a8ef2b6c26aefe51e33db804a75ff5cfdb592f4.tar.bz2
Fixed a race condition in starting a thread
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread.h b/thread.h
index c3d8d06a..6e096a64 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.25 2004/11/26 13:33:26 kls Exp $
+ * $Id: thread.h 1.26 2004/12/19 10:43:10 kls Exp $
*/
#ifndef __THREAD_H
@@ -73,8 +73,8 @@ public:
class cThread {
friend class cThreadLock;
private:
- pthread_t parentTid, childTid;
- cMutex childTidMutex;
+ bool running;
+ pthread_t childTid;
cMutex mutex;
char *description;
static bool emergencyExitRequested;