Mesa (main): util: Remove usage of USE_ELF_TLS in u_thread.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jul 30 02:03:35 UTC 2022


Module: Mesa
Branch: main
Commit: 365253605aac3f6aa3a4cc3712acc28239844813
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=365253605aac3f6aa3a4cc3712acc28239844813

Author: Yonggang Luo <luoyonggang at gmail.com>
Date:   Sat Jun 25 13:32:32 2022 +0800

util: Remove usage of USE_ELF_TLS in u_thread.h

Signed-off-by: Yonggang Luo <luoyonggang at gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213>

---

 src/util/u_thread.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index 98b7978b752..804593f63eb 100644
--- a/src/util/u_thread.h
+++ b/src/util/u_thread.h
@@ -78,7 +78,6 @@
  * still want to use normal TLS (which involves a function call, but not the
  * expensive pthread_getspecific() or its equivalent).
  */
-#ifdef USE_ELF_TLS
 #if DETECT_OS_APPLE
 /* Apple Clang emits wrappers when using thread_local that break module linkage,
  * but not with __thread
@@ -90,7 +89,6 @@
 #else
 #define __THREAD_INITIAL_EXEC thread_local
 #endif
-#endif
 
 static inline int
 util_get_current_cpu(void)



More information about the mesa-commit mailing list