aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-12-19 22:37:21 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-22 23:34:27 +0100
commit4ab765c6ba7c7ec02de3b5b143032494e6a553da (patch)
tree6253df8ba89fa54a7d4b9670d4bb3a140c1dc149
parent8735ea79ab22cad3bd975b507fd6ca4b37094bb8 (diff)
downloadglibc-4ab765c6ba7c7ec02de3b5b143032494e6a553da.zip
glibc-4ab765c6ba7c7ec02de3b5b143032494e6a553da.tar.gz
glibc-4ab765c6ba7c7ec02de3b5b143032494e6a553da.tar.bz2
htl: move __pthread_wakeup into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20241219203727.669825-3-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions1
-rw-r--r--htl/pt-internal.h2
-rw-r--r--sysdeps/mach/htl/pt-wakeup.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 8dee043..168b211 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -109,7 +109,6 @@ libpthread-routines := \
pt-timedblock \
pt-block-intr \
pt-timedblock-intr \
- pt-wakeup \
pt-docancel \
pt-sysdep \
pt-setup \
@@ -211,6 +210,7 @@ routines := \
pt-sigmask \
pt-sigstate \
pt-sigstate-destroy \
+ pt-wakeup \
# routines
shared-only-routines = forward
diff --git a/htl/Versions b/htl/Versions
index 02d655d..996626d 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -101,6 +101,7 @@ libc {
__pthread_sigstate;
__pthread_sigstate_destroy;
__pthread_sigmask;
+ __pthread_wakeup;
}
}
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index 2b4331a..de459d7 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -283,7 +283,7 @@ extern error_t __pthread_timedblock_intr (struct __pthread *__restrict thread,
/* Wakeup THREAD. */
extern void __pthread_wakeup (struct __pthread *thread);
-
+libc_hidden_proto (__pthread_wakeup)
/* Perform a cancelation. The CANCEL_LOCK member of the given thread must
be locked before calling this function, which must unlock it. */
diff --git a/sysdeps/mach/htl/pt-wakeup.c b/sysdeps/mach/htl/pt-wakeup.c
index c7c0c3b..2855bcb 100644
--- a/sysdeps/mach/htl/pt-wakeup.c
+++ b/sysdeps/mach/htl/pt-wakeup.c
@@ -35,3 +35,4 @@ __pthread_wakeup (struct __pthread *thread)
0, MACH_PORT_NULL);
assert_perror (err);
}
+libc_hidden_def (__pthread_wakeup)