]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move __pthread_thread_{alloc, start, terminate} into libc.
authorgfleury <gfleury@disroot.org>
Fri, 15 Aug 2025 18:14:46 +0000 (20:14 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 15 Aug 2025 23:44:26 +0000 (01:44 +0200)
Message-ID: <20250815181500.107433-6-gfleury@disroot.org>

htl/Makefile
htl/Versions
htl/pt-internal.h
sysdeps/mach/htl/pt-thread-alloc.c
sysdeps/mach/htl/pt-thread-start.c
sysdeps/mach/htl/pt-thread-terminate.c

index 88d02ca8a277dd988133f3d767431ddbcb0bee0c..e9fa141193721517411628869938244cd55d88b6 100644 (file)
@@ -37,9 +37,6 @@ libpthread-routines := \
   pt-mutex-transfer-np \
   pt-hurd-cond-wait \
   pt-hurd-cond-timedwait \
-  pt-thread-alloc \
-  pt-thread-start \
-  pt-thread-terminate \
   pt-startup \
   pt-docancel \
   pt-sysdep \
@@ -208,6 +205,9 @@ routines := \
   pt-sigstate \
   pt-sigstate-destroy \
   pt-stack-alloc \
+  pt-thread-alloc \
+  pt-thread-start \
+  pt-thread-terminate \
   pt-timedblock \
   pt-timedblock-intr \
   pt-wakeup \
index 8d9dad887cde6ff5207b1d8dcc5bf7dfc51ae07b..c216db4b80935f57514cfdbd40b9e34b790827d6 100644 (file)
@@ -248,6 +248,9 @@ libc {
     __pthread_stack_alloc;
     __pthread_timedblock;
     __pthread_timedblock_intr;
+    __pthread_thread_alloc;
+    __pthread_thread_start;
+    __pthread_thread_terminate;
     __pthread_wakeup;
   }
 }
index 28b7785045fc79547d24da1b53a174e0af151c70..7651446b3b8be5eae6a9c8a99a48cb8bbecdd972 100644 (file)
@@ -247,9 +247,11 @@ extern int __pthread_setup (struct __pthread *__restrict thread,
 /* Allocate a kernel thread (and any miscellaneous system dependent
    resources) for THREAD; it must not be placed on the run queue.  */
 extern int __pthread_thread_alloc (struct __pthread *thread);
+libc_hidden_proto (__pthread_thread_alloc)
 
 /* Start THREAD making it eligible to run.  */
 extern int __pthread_thread_start (struct __pthread *thread);
+libc_hidden_proto (__pthread_thread_start)
 
 /* Terminate the kernel thread associated with THREAD, and deallocate its
    stack as well as any other kernel resource associated with it.
@@ -263,7 +265,7 @@ extern int __pthread_thread_start (struct __pthread *thread);
    has started, no other thread can terminate it, so that thread-local
    variables created by that thread are correctly released.  */
 extern void __pthread_thread_terminate (struct __pthread *thread);
-
+libc_hidden_proto (__pthread_thread_terminate)
 
 /* Called by a thread just before it calls the provided start
    routine.  */
index 3f840e4084fd1c40ae45926c9dc96c40c08c18c9..020ff74b4ced7dc01acd9a5e00dbd792a47b3809 100644 (file)
@@ -92,3 +92,4 @@ __pthread_thread_alloc (struct __pthread *thread)
 
   return 0;
 }
+libc_hidden_def (__pthread_thread_alloc)
index 65bc8d4afca53b432cf7110289acbd17f1ebd113..64811e4da349d762ab2bff0278dd4c72186fcd11 100644 (file)
@@ -51,3 +51,4 @@ __pthread_thread_start (struct __pthread *thread)
 
   return 0;
 }
+libc_hidden_def (__pthread_thread_start)
index 58f265dbe23b4a2c024124a30563315a9c8f8a50..05ca3edaeae16c3024c28c6cfb3f8c6a90148f2c 100644 (file)
@@ -91,3 +91,4 @@ __pthread_thread_terminate (struct __pthread *thread)
   /* We are out of luck.  */
   assert_perror (err);
 }
+libc_hidden_def (__pthread_thread_terminate)