util: Remove usage of USE_ELF_TLS in u_thread.h
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213>
This commit is contained in:
parent
aa0b857544
commit
365253605a
|
@ -78,7 +78,6 @@
|
||||||
* still want to use normal TLS (which involves a function call, but not the
|
* still want to use normal TLS (which involves a function call, but not the
|
||||||
* expensive pthread_getspecific() or its equivalent).
|
* expensive pthread_getspecific() or its equivalent).
|
||||||
*/
|
*/
|
||||||
#ifdef USE_ELF_TLS
|
|
||||||
#if DETECT_OS_APPLE
|
#if DETECT_OS_APPLE
|
||||||
/* Apple Clang emits wrappers when using thread_local that break module linkage,
|
/* Apple Clang emits wrappers when using thread_local that break module linkage,
|
||||||
* but not with __thread
|
* but not with __thread
|
||||||
|
@ -90,7 +89,6 @@
|
||||||
#else
|
#else
|
||||||
#define __THREAD_INITIAL_EXEC thread_local
|
#define __THREAD_INITIAL_EXEC thread_local
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
util_get_current_cpu(void)
|
util_get_current_cpu(void)
|
||||||
|
|
Loading…
Reference in New Issue