[PATCH 1/8] htl: move __pthread_default_barrierattr into libc.

gfleury gfleury@disroot.org
Sun Feb 9 20:01:01 GMT 2025


---
 htl/Makefile             | 2 +-
 htl/Versions             | 1 +
 htl/pt-internal.h        | 1 +
 sysdeps/htl/pt-barrier.c | 1 +
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/htl/Makefile b/htl/Makefile
index a4192a56..6404cba9 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -28,7 +28,6 @@ libpthread-routines := \
   pt-barrier-destroy \
   pt-barrier-init \
   pt-barrier-wait \
-  pt-barrier \
   pt-barrierattr-destroy \
   pt-barrierattr-init \
   pt-barrierattr-getpshared \
@@ -161,6 +160,7 @@ routines := \
   pt-attr-setstack \
   pt-attr-setstackaddr \
   pt-attr-setstacksize \
+  pt-barrier \
   pt-block \
   pt-block-intr \
   pt-cond \
diff --git a/htl/Versions b/htl/Versions
index d8f1c7f4..5aff0858 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -147,6 +147,7 @@ libc {
     __pthread_attr_setstacksize;
     __pthread_attr_setstackaddr;
     __pthread_attr_setstack;
+    __pthread_default_barrierattr;
     __pthread_setcancelstate;
     __pthread_cond_broadcast;
     __pthread_cond_destroy;
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index d19579b3..506eaec5 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -328,6 +328,7 @@ libc_hidden_proto (__pthread_default_attr)
 
 /* Default barrier attributes.  */
 extern const struct __pthread_barrierattr __pthread_default_barrierattr;
+libc_hidden_proto (__pthread_default_barrierattr)
 
 /* Default rdlock attributes.  */
 extern const struct __pthread_rwlockattr __pthread_default_rwlockattr;
diff --git a/sysdeps/htl/pt-barrier.c b/sysdeps/htl/pt-barrier.c
index 859c0848..e620a13f 100644
--- a/sysdeps/htl/pt-barrier.c
+++ b/sysdeps/htl/pt-barrier.c
@@ -22,3 +22,4 @@
 const struct __pthread_barrierattr __pthread_default_barrierattr = {
   __pshared: PTHREAD_PROCESS_PRIVATE
 };
+libc_hidden_data_def (__pthread_default_barrierattr)
-- 
2.39.5



More information about the Libc-alpha mailing list