summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-10-18 11:14:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-10-18 11:14:33 +0200
commit15816ee8e4a1be96bba1da9199739f1666a87703 (patch)
tree98971a87a165639a7785aaaf8ff59421680cdba3 /thread.h
parentf1a4d067be7113ac1418791fa0b0818800773418 (diff)
downloadvdr-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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/thread.h b/thread.h
index 05997424..65c0d7c9 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.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;