diff options
Diffstat (limited to 'nptl/sysdeps/s390/tls.h')
-rw-r--r-- | nptl/sysdeps/s390/tls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/sysdeps/s390/tls.h b/nptl/sysdeps/s390/tls.h index 06237ae..89e51ff 100644 --- a/nptl/sysdeps/s390/tls.h +++ b/nptl/sysdeps/s390/tls.h @@ -137,6 +137,10 @@ typedef struct /* Return the thread descriptor for the current thread. */ # define THREAD_SELF ((struct pthread *) __builtin_thread_pointer ()) +/* Identifier for the current thread. THREAD_SELF is usable but + sometimes more expensive than necessary. It is fine here. */ +# define THREAD_ID THREAD_SELF + /* Access to data in the thread descriptor is easy. */ #define THREAD_GETMEM(descr, member) \ descr->member |