summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-08-20 10:28:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-08-20 10:28:35 +0200
commitef01c6d8bbce8aea091191c6073ab55ff2cd041e (patch)
tree8f8a0830e4d5981eedf76043a69e2a06e6b73907 /thread.c
parente68171626e0492593f82da76e5a63b36e4fa5f99 (diff)
downloadvdr-ef01c6d8bbce8aea091191c6073ab55ff2cd041e.tar.gz
vdr-ef01c6d8bbce8aea091191c6073ab55ff2cd041e.tar.bz2
Adapted cThread::ThreadId() to recent kernels
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index 1749fc1e..8b6e58f4 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.56 2006/06/24 10:10:58 kls Exp $
+ * $Id: thread.c 1.57 2006/08/20 10:20:44 kls Exp $
*/
#include "thread.h"
@@ -316,11 +316,9 @@ bool cThread::EmergencyExit(bool Request)
return emergencyExitRequested = true; // yes, it's an assignment, not a comparison!
}
-_syscall0(pid_t, gettid)
-
tThreadId cThread::ThreadId(void)
{
- return gettid();
+ return syscall(__NR_gettid);
}
void cThread::SetMainThreadId(void)