mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
htl: move pthread_barrier_init into libc.
Message-ID: <20250209200108.865599-7-gfleury@disroot.org>
This commit is contained in:
parent
735c9b73d6
commit
2789003489
8 changed files with 20 additions and 6 deletions
|
@ -25,7 +25,6 @@ SYSDEPS := lockfile
|
|||
LCLHDRS :=
|
||||
|
||||
libpthread-routines := \
|
||||
pt-barrier-init \
|
||||
pt-barrier-wait \
|
||||
pt-destroy-specific \
|
||||
pt-init-specific \
|
||||
|
@ -157,6 +156,7 @@ routines := \
|
|||
pt-attr-setstacksize \
|
||||
pt-barrier \
|
||||
pt-barrier-destroy \
|
||||
pt-barrier-init \
|
||||
pt-barrierattr-destroy \
|
||||
pt-barrierattr-getpshared \
|
||||
pt-barrierattr-init \
|
||||
|
|
|
@ -27,6 +27,7 @@ libc {
|
|||
pthread_attr_setschedparam;
|
||||
pthread_attr_init;
|
||||
pthread_barrier_destroy;
|
||||
pthread_barrier_init;
|
||||
pthread_barrierattr_destroy;
|
||||
pthread_barrierattr_getpshared;
|
||||
pthread_barrierattr_init;
|
||||
|
@ -130,6 +131,7 @@ libc {
|
|||
|
||||
GLIBC_2.42 {
|
||||
pthread_barrier_destroy;
|
||||
pthread_barrier_init;
|
||||
pthread_barrierattr_destroy;
|
||||
pthread_barrierattr_getpshared;
|
||||
pthread_barrierattr_init;
|
||||
|
@ -212,7 +214,7 @@ libpthread {
|
|||
|
||||
pthread_atfork;
|
||||
|
||||
pthread_barrier_init; pthread_barrier_wait;
|
||||
pthread_barrier_wait;
|
||||
|
||||
pthread_cancel;
|
||||
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
#include <pthread.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <shlib-compat.h>
|
||||
#include <pt-internal.h>
|
||||
|
||||
int
|
||||
pthread_barrier_init (pthread_barrier_t *barrier,
|
||||
__pthread_barrier_init (pthread_barrier_t *barrier,
|
||||
const pthread_barrierattr_t *attr, unsigned count)
|
||||
{
|
||||
ASSERT_TYPE_SIZE (pthread_barrier_t, __SIZEOF_PTHREAD_BARRIER_T);
|
||||
|
@ -51,3 +51,9 @@ pthread_barrier_init (pthread_barrier_t *barrier,
|
|||
*barrier->__attr = *attr;
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (__pthread_barrier_init)
|
||||
versioned_symbol (libc, __pthread_barrier_init, pthread_barrier_init, GLIBC_2_42);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42)
|
||||
compat_symbol (libpthread, __pthread_barrier_init, pthread_barrier_init, GLIBC_2_12);
|
||||
#endif
|
||||
|
|
|
@ -33,6 +33,10 @@ extern void __pthread_init_static_tls (struct link_map *) attribute_hidden;
|
|||
|
||||
extern int __pthread_barrier_destroy (pthread_barrier_t *__barrier);
|
||||
libc_hidden_proto (__pthread_barrier_destroy)
|
||||
extern int __pthread_barrier_init (pthread_barrier_t *__barrier,
|
||||
const pthread_barrierattr_t *__attr,
|
||||
unsigned __count);
|
||||
libc_hidden_proto (__pthread_barrier_init)
|
||||
extern int __pthread_barrierattr_destroy (pthread_barrierattr_t *__attr);
|
||||
libc_hidden_proto (__pthread_barrierattr_destroy)
|
||||
extern int __pthread_barrierattr_getpshared (const pthread_barrierattr_t *__attr,
|
||||
|
|
|
@ -50,6 +50,7 @@ GLIBC_2.12 pthread_attr_setstack F
|
|||
GLIBC_2.12 pthread_attr_setstackaddr F
|
||||
GLIBC_2.12 pthread_attr_setstacksize F
|
||||
GLIBC_2.12 pthread_barrier_destroy F
|
||||
GLIBC_2.12 pthread_barrier_init F
|
||||
GLIBC_2.12 pthread_barrierattr_destroy F
|
||||
GLIBC_2.12 pthread_barrierattr_getpshared F
|
||||
GLIBC_2.12 pthread_barrierattr_init F
|
||||
|
@ -2567,6 +2568,7 @@ GLIBC_2.41 pthread_mutexattr_setrobust_np F
|
|||
GLIBC_2.41 pthread_mutexattr_settype F
|
||||
GLIBC_2.41 pthread_sigmask F
|
||||
GLIBC_2.42 pthread_barrier_destroy F
|
||||
GLIBC_2.42 pthread_barrier_init F
|
||||
GLIBC_2.42 pthread_barrierattr_destroy F
|
||||
GLIBC_2.42 pthread_barrierattr_getpshared F
|
||||
GLIBC_2.42 pthread_barrierattr_init F
|
||||
|
|
|
@ -22,7 +22,6 @@ GLIBC_2.12 flockfile F
|
|||
GLIBC_2.12 ftrylockfile F
|
||||
GLIBC_2.12 funlockfile F
|
||||
GLIBC_2.12 pthread_atfork F
|
||||
GLIBC_2.12 pthread_barrier_init F
|
||||
GLIBC_2.12 pthread_barrier_wait F
|
||||
GLIBC_2.12 pthread_cancel F
|
||||
GLIBC_2.12 pthread_create F
|
||||
|
|
|
@ -1532,6 +1532,7 @@ GLIBC_2.38 pthread_attr_setstack F
|
|||
GLIBC_2.38 pthread_attr_setstackaddr F
|
||||
GLIBC_2.38 pthread_attr_setstacksize F
|
||||
GLIBC_2.38 pthread_barrier_destroy F
|
||||
GLIBC_2.38 pthread_barrier_init F
|
||||
GLIBC_2.38 pthread_barrierattr_destroy F
|
||||
GLIBC_2.38 pthread_barrierattr_getpshared F
|
||||
GLIBC_2.38 pthread_barrierattr_init F
|
||||
|
@ -2250,6 +2251,7 @@ GLIBC_2.41 pthread_mutexattr_setrobust_np F
|
|||
GLIBC_2.41 pthread_mutexattr_settype F
|
||||
GLIBC_2.41 pthread_sigmask F
|
||||
GLIBC_2.42 pthread_barrier_destroy F
|
||||
GLIBC_2.42 pthread_barrier_init F
|
||||
GLIBC_2.42 pthread_barrierattr_destroy F
|
||||
GLIBC_2.42 pthread_barrierattr_getpshared F
|
||||
GLIBC_2.42 pthread_barrierattr_init F
|
||||
|
|
|
@ -39,7 +39,6 @@ GLIBC_2.38 mtx_lock F
|
|||
GLIBC_2.38 mtx_timedlock F
|
||||
GLIBC_2.38 mtx_trylock F
|
||||
GLIBC_2.38 mtx_unlock F
|
||||
GLIBC_2.38 pthread_barrier_init F
|
||||
GLIBC_2.38 pthread_barrier_wait F
|
||||
GLIBC_2.38 pthread_cancel F
|
||||
GLIBC_2.38 pthread_clockjoin_np F
|
||||
|
|
Loading…
Add table
Reference in a new issue