aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/ia64/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/ia64/tls.h')
-rw-r--r--nptl/sysdeps/ia64/tls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/sysdeps/ia64/tls.h b/nptl/sysdeps/ia64/tls.h
index 8a13a59..5ce7473 100644
--- a/nptl/sysdeps/ia64/tls.h
+++ b/nptl/sysdeps/ia64/tls.h
@@ -113,6 +113,10 @@ register struct pthread *__thread_self __asm__("r13");
/* Return the thread descriptor for the current thread. */
# define THREAD_SELF (__thread_self - 1)
+/* Identifier for the current thread. THREAD_SELF is usable but
+ sometimes more expensive than necessary as in this case. */
+# define THREAD_ID __thread_self
+
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) \
descr->member