diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-18 11:14:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-18 11:14:33 +0200 |
commit | 15816ee8e4a1be96bba1da9199739f1666a87703 (patch) | |
tree | 98971a87a165639a7785aaaf8ff59421680cdba3 /thread.h | |
parent | f1a4d067be7113ac1418791fa0b0818800773418 (diff) | |
download | vdr-15816ee8e4a1be96bba1da9199739f1666a87703.tar.gz vdr-15816ee8e4a1be96bba1da9199739f1666a87703.tar.bz2 |
Changed thread handling to make it work with NPTL
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 7 |
1 files changed, 3 insertions, 4 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.15 2003/05/03 14:03:36 kls Exp $ + * $Id: thread.h 1.16 2003/10/18 10:29:25 kls Exp $ */ #ifndef __THREAD_H @@ -32,7 +32,7 @@ class cMutex { friend class cCondVar; private: pthread_mutex_t mutex; - pid_t lockingPid; + pthread_t lockingTid; int locked; public: cMutex(void); @@ -44,9 +44,8 @@ public: class cThread { friend class cThreadLock; private: - pthread_t thread; + pthread_t parentTid, childTid; cMutex mutex; - pid_t parentPid, threadPid; bool running; static bool emergencyExitRequested; static bool signalHandlerInstalled; |