summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-12-11 12:10:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-12-11 12:10:28 +0100
commit72759ed1313982aaade3a380fe5beddfffc7824b (patch)
tree4ec561a605d146d62cec61be49068279c9ae2acb /thread.h
parent506b0de497f8abb407df3ff8a82d2253f8967c5d (diff)
downloadvdr-72759ed1313982aaade3a380fe5beddfffc7824b.tar.gz
vdr-72759ed1313982aaade3a380fe5beddfffc7824b.tar.bz2
Now using the gettid() syscall to get a thread's pid, so that we get a useful value on NPTL systems
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 1b6200ce..e3bdccff 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.32 2005/11/27 15:16:50 kls Exp $
+ * $Id: thread.h 1.33 2005/12/11 12:04:56 kls Exp $
*/
#ifndef __THREAD_H
@@ -72,7 +72,7 @@ public:
void Unlock(void);
};
-typedef pthread_t tThreadId;
+typedef pid_t tThreadId;
class cThread {
friend class cThreadLock;
@@ -115,7 +115,7 @@ public:
bool Active(void);
///< Checks whether the thread is still alive.
static bool EmergencyExit(bool Request = false);
- static tThreadId ThreadId(void) { return pthread_self(); }
+ static tThreadId ThreadId(void);
static tThreadId IsMainThread(void) { return ThreadId() == mainThreadId; }
};