diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-12-19 10:58:20 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-12-19 10:58:20 +0100 |
commit | 9a8ef2b6c26aefe51e33db804a75ff5cfdb592f4 (patch) | |
tree | 155b9cbb8af3dad7b82f7c9e7cb103bd30b8e0c9 /thread.h | |
parent | f5b1a74056a865d406ba8efab4ae15c45eebf6b9 (diff) | |
download | vdr-9a8ef2b6c26aefe51e33db804a75ff5cfdb592f4.tar.gz vdr-9a8ef2b6c26aefe51e33db804a75ff5cfdb592f4.tar.bz2 |
Fixed a race condition in starting a thread
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 6 |
1 files changed, 3 insertions, 3 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.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; |