diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
commit | 08129b155e50f01588ec6e675fc76637cb22eb01 (patch) | |
tree | 951a55d038001f1de40e4c40442a1819d6820402 /nptl/pthreadP.h | |
parent | 27a448223cb2d3bab191c61303db48cee66f871c (diff) | |
download | glibc-08129b155e50f01588ec6e675fc76637cb22eb01.tar.gz glibc-08129b155e50f01588ec6e675fc76637cb22eb01.tar.xz glibc-08129b155e50f01588ec6e675fc76637cb22eb01.zip |
nptl: Move core condition variable functions into libc
Onl pthread_cond_clockwait did not have a forwarder, so it needs a new symbol version. Some complications arise due to the need to supply hidden aliases, GLIBC_PRIVATE exports (for the C11 condition variable implementation that still remains in libpthread) and 64-bit time_t stubs. pthread_cond_broadcast, pthread_cond_signal, pthread_cond_timedwait, pthread_cond_wait, pthread_cond_clockwait have been moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthreadP.h')
-rw-r--r-- | nptl/pthreadP.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h index 332744ec6a..14f2bd9535 100644 --- a/nptl/pthreadP.h +++ b/nptl/pthreadP.h @@ -463,13 +463,16 @@ libc_hidden_proto (__pthread_rwlock_wrlock) extern int __pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock); extern int __pthread_rwlock_unlock (pthread_rwlock_t *__rwlock); extern int __pthread_cond_broadcast (pthread_cond_t *cond); +libc_hidden_proto (__pthread_cond_broadcast) extern int __pthread_cond_destroy (pthread_cond_t *cond); libc_hidden_proto (__pthread_cond_destroy) extern int __pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *cond_attr); libc_hidden_proto (__pthread_cond_init) extern int __pthread_cond_signal (pthread_cond_t *cond); +libc_hidden_proto (__pthread_cond_signal) extern int __pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex); +libc_hidden_proto (__pthread_cond_wait) #if __TIMESIZE == 64 # define __pthread_clockjoin_np64 __pthread_clockjoin_np @@ -493,12 +496,12 @@ libpthread_hidden_proto (__pthread_timedjoin_np64) extern int __pthread_cond_timedwait64 (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct __timespec64 *abstime); -libpthread_hidden_proto (__pthread_cond_timedwait64) +libc_hidden_proto (__pthread_cond_timedwait64) extern int __pthread_cond_clockwait64 (pthread_cond_t *cond, pthread_mutex_t *mutex, clockid_t clockid, const struct __timespec64 *abstime); -libpthread_hidden_proto (__pthread_cond_clockwait64) +libc_hidden_proto (__pthread_cond_clockwait64) extern int __pthread_rwlock_clockrdlock64 (pthread_rwlock_t *rwlock, clockid_t clockid, const struct __timespec64 *abstime); @@ -525,11 +528,13 @@ libpthread_hidden_proto (__pthread_mutex_timedlock64) extern int __pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime); +libc_hidden_proto (__pthread_cond_timedwait) extern int __pthread_cond_clockwait (pthread_cond_t *cond, pthread_mutex_t *mutex, clockid_t clockid, const struct timespec *abstime) __nonnull ((1, 2, 4)); +libc_hidden_proto (__pthread_cond_clockwait) extern int __pthread_condattr_destroy (pthread_condattr_t *attr); extern int __pthread_condattr_init (pthread_condattr_t *attr); extern int __pthread_key_create (pthread_key_t *key, void (*destr) (void *)); |