diff options
Diffstat (limited to 'nptl/sysdeps/x86_64')
-rw-r--r-- | nptl/sysdeps/x86_64/tls.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nptl/sysdeps/x86_64/tls.h b/nptl/sysdeps/x86_64/tls.h index ab6efc47c3..cb3b474f97 100644 --- a/nptl/sysdeps/x86_64/tls.h +++ b/nptl/sysdeps/x86_64/tls.h @@ -364,6 +364,13 @@ typedef struct #define THREAD_GSCOPE_WAIT() \ GL(dl_wait_lookup_done) () +#ifndef __ASSUME_PRIVATE_FUTEX +# define THREAD_SET_PRIVATE_FUTEX(value) \ + THREAD_SETMEM (THREAD_SELF, header.private_futex, value) +# define THREAD_COPY_PRIVATE_FUTEX(descr) \ + ((descr)->header.private_futex \ + = THREAD_GETMEM (THREAD_SELF, header.private_futex)) +#endif #endif /* __ASSEMBLER__ */ |