mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 22:00:08 +00:00
afe4de7d28
Add: int pthread_cond_clockwait (pthread_cond_t *cond, pthread_mutex_t *mutex, clockid_t clockid, const struct timespec *abstime) which behaves just like pthread_cond_timedwait except it always measures abstime against the supplied clockid. Currently supports CLOCK_REALTIME and CLOCK_MONOTONIC and returns EINVAL if any other clock is specified. Includes feedback from many others. This function was originally proposed[1] as pthread_cond_timedwaitonclock_np, but The Austin Group preferred the new name. * nptl/Makefile: Add tst-cond26 and tst-cond27 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait * sysdeps/nptl/pthread.h: Likewise * nptl/forward.c: Add __pthread_cond_clockwait * nptl/forward.c: Likewise * nptl/pthreadP.h: Likewise * sysdeps/nptl/pthread-functions.h: Likewise * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add clockid parameter and comment describing why we don't need to check its value. Use that value when calling futex_abstimed_wait_cancelable rather than reading the clock from the flags. (__pthread_cond_wait): Pass unused clockid parameter. (__pthread_cond_timedwait): Read clock from flags and pass it to __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new function with weak alias from pthread_cond_clockwait. * sysdeps/mach/hurd/i386/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist * (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): * Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist (GLIBC_2.30): Likewise. * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist (GLIBC_2.30): Likewise. * nptl/tst-cond11.c (run_test): Support testing pthread_cond_clockwait too by using a special magic CLOCK_USE_ATTR_CLOCK value to determine whether to call pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME. * ntpl/tst-cond26.c: New test for passing unsupported and * invalid clocks to pthread_cond_clockwait. * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using struct timespec and pthread_cond_clockwait. * manual/threads.texi: Document pthread_cond_clockwait. The * comment was provided by Carlos O'Donell. [1] https://sourceware.org/ml/libc-alpha/2015-07/msg00193.html Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
268 lines
8.1 KiB
Plaintext
268 lines
8.1 KiB
Plaintext
GLIBC_2.0 _IO_flockfile F
|
|
GLIBC_2.0 _IO_ftrylockfile F
|
|
GLIBC_2.0 _IO_funlockfile F
|
|
GLIBC_2.0 __close F
|
|
GLIBC_2.0 __connect F
|
|
GLIBC_2.0 __errno_location F
|
|
GLIBC_2.0 __fcntl F
|
|
GLIBC_2.0 __fork F
|
|
GLIBC_2.0 __h_errno_location F
|
|
GLIBC_2.0 __lseek F
|
|
GLIBC_2.0 __open F
|
|
GLIBC_2.0 __pthread_getspecific F
|
|
GLIBC_2.0 __pthread_key_create F
|
|
GLIBC_2.0 __pthread_mutex_destroy F
|
|
GLIBC_2.0 __pthread_mutex_init F
|
|
GLIBC_2.0 __pthread_mutex_lock F
|
|
GLIBC_2.0 __pthread_mutex_trylock F
|
|
GLIBC_2.0 __pthread_mutex_unlock F
|
|
GLIBC_2.0 __pthread_mutexattr_destroy F
|
|
GLIBC_2.0 __pthread_mutexattr_init F
|
|
GLIBC_2.0 __pthread_mutexattr_settype F
|
|
GLIBC_2.0 __pthread_once F
|
|
GLIBC_2.0 __pthread_setspecific F
|
|
GLIBC_2.0 __read F
|
|
GLIBC_2.0 __send F
|
|
GLIBC_2.0 __sigaction F
|
|
GLIBC_2.0 __wait F
|
|
GLIBC_2.0 __write F
|
|
GLIBC_2.0 _pthread_cleanup_pop F
|
|
GLIBC_2.0 _pthread_cleanup_pop_restore F
|
|
GLIBC_2.0 _pthread_cleanup_push F
|
|
GLIBC_2.0 _pthread_cleanup_push_defer F
|
|
GLIBC_2.0 accept F
|
|
GLIBC_2.0 close F
|
|
GLIBC_2.0 connect F
|
|
GLIBC_2.0 fcntl F
|
|
GLIBC_2.0 flockfile F
|
|
GLIBC_2.0 fork F
|
|
GLIBC_2.0 fsync F
|
|
GLIBC_2.0 ftrylockfile F
|
|
GLIBC_2.0 funlockfile F
|
|
GLIBC_2.0 longjmp F
|
|
GLIBC_2.0 lseek F
|
|
GLIBC_2.0 msync F
|
|
GLIBC_2.0 nanosleep F
|
|
GLIBC_2.0 open F
|
|
GLIBC_2.0 pause F
|
|
GLIBC_2.0 pthread_atfork F
|
|
GLIBC_2.0 pthread_attr_destroy F
|
|
GLIBC_2.0 pthread_attr_getdetachstate F
|
|
GLIBC_2.0 pthread_attr_getinheritsched F
|
|
GLIBC_2.0 pthread_attr_getschedparam F
|
|
GLIBC_2.0 pthread_attr_getschedpolicy F
|
|
GLIBC_2.0 pthread_attr_getscope F
|
|
GLIBC_2.0 pthread_attr_init F
|
|
GLIBC_2.0 pthread_attr_setdetachstate F
|
|
GLIBC_2.0 pthread_attr_setinheritsched F
|
|
GLIBC_2.0 pthread_attr_setschedparam F
|
|
GLIBC_2.0 pthread_attr_setschedpolicy F
|
|
GLIBC_2.0 pthread_attr_setscope F
|
|
GLIBC_2.0 pthread_cancel F
|
|
GLIBC_2.0 pthread_cond_broadcast F
|
|
GLIBC_2.0 pthread_cond_destroy F
|
|
GLIBC_2.0 pthread_cond_init F
|
|
GLIBC_2.0 pthread_cond_signal F
|
|
GLIBC_2.0 pthread_cond_timedwait F
|
|
GLIBC_2.0 pthread_cond_wait F
|
|
GLIBC_2.0 pthread_condattr_destroy F
|
|
GLIBC_2.0 pthread_condattr_init F
|
|
GLIBC_2.0 pthread_create F
|
|
GLIBC_2.0 pthread_detach F
|
|
GLIBC_2.0 pthread_equal F
|
|
GLIBC_2.0 pthread_exit F
|
|
GLIBC_2.0 pthread_getschedparam F
|
|
GLIBC_2.0 pthread_getspecific F
|
|
GLIBC_2.0 pthread_join F
|
|
GLIBC_2.0 pthread_key_create F
|
|
GLIBC_2.0 pthread_key_delete F
|
|
GLIBC_2.0 pthread_kill F
|
|
GLIBC_2.0 pthread_kill_other_threads_np F
|
|
GLIBC_2.0 pthread_mutex_destroy F
|
|
GLIBC_2.0 pthread_mutex_init F
|
|
GLIBC_2.0 pthread_mutex_lock F
|
|
GLIBC_2.0 pthread_mutex_trylock F
|
|
GLIBC_2.0 pthread_mutex_unlock F
|
|
GLIBC_2.0 pthread_mutexattr_destroy F
|
|
GLIBC_2.0 pthread_mutexattr_getkind_np F
|
|
GLIBC_2.0 pthread_mutexattr_init F
|
|
GLIBC_2.0 pthread_mutexattr_setkind_np F
|
|
GLIBC_2.0 pthread_once F
|
|
GLIBC_2.0 pthread_self F
|
|
GLIBC_2.0 pthread_setcancelstate F
|
|
GLIBC_2.0 pthread_setcanceltype F
|
|
GLIBC_2.0 pthread_setschedparam F
|
|
GLIBC_2.0 pthread_setspecific F
|
|
GLIBC_2.0 pthread_sigmask F
|
|
GLIBC_2.0 pthread_testcancel F
|
|
GLIBC_2.0 raise F
|
|
GLIBC_2.0 read F
|
|
GLIBC_2.0 recv F
|
|
GLIBC_2.0 recvfrom F
|
|
GLIBC_2.0 recvmsg F
|
|
GLIBC_2.0 sem_destroy F
|
|
GLIBC_2.0 sem_getvalue F
|
|
GLIBC_2.0 sem_init F
|
|
GLIBC_2.0 sem_post F
|
|
GLIBC_2.0 sem_trywait F
|
|
GLIBC_2.0 sem_wait F
|
|
GLIBC_2.0 send F
|
|
GLIBC_2.0 sendmsg F
|
|
GLIBC_2.0 sendto F
|
|
GLIBC_2.0 sigaction F
|
|
GLIBC_2.0 siglongjmp F
|
|
GLIBC_2.0 sigwait F
|
|
GLIBC_2.0 system F
|
|
GLIBC_2.0 tcdrain F
|
|
GLIBC_2.0 wait F
|
|
GLIBC_2.0 waitpid F
|
|
GLIBC_2.0 write F
|
|
GLIBC_2.1 __libc_allocate_rtsig F
|
|
GLIBC_2.1 __libc_current_sigrtmax F
|
|
GLIBC_2.1 __libc_current_sigrtmin F
|
|
GLIBC_2.1 pthread_attr_getguardsize F
|
|
GLIBC_2.1 pthread_attr_getstackaddr F
|
|
GLIBC_2.1 pthread_attr_getstacksize F
|
|
GLIBC_2.1 pthread_attr_init F
|
|
GLIBC_2.1 pthread_attr_setguardsize F
|
|
GLIBC_2.1 pthread_attr_setstackaddr F
|
|
GLIBC_2.1 pthread_attr_setstacksize F
|
|
GLIBC_2.1 pthread_create F
|
|
GLIBC_2.1 pthread_getconcurrency F
|
|
GLIBC_2.1 pthread_mutexattr_gettype F
|
|
GLIBC_2.1 pthread_mutexattr_settype F
|
|
GLIBC_2.1 pthread_rwlock_destroy F
|
|
GLIBC_2.1 pthread_rwlock_init F
|
|
GLIBC_2.1 pthread_rwlock_rdlock F
|
|
GLIBC_2.1 pthread_rwlock_tryrdlock F
|
|
GLIBC_2.1 pthread_rwlock_trywrlock F
|
|
GLIBC_2.1 pthread_rwlock_unlock F
|
|
GLIBC_2.1 pthread_rwlock_wrlock F
|
|
GLIBC_2.1 pthread_rwlockattr_destroy F
|
|
GLIBC_2.1 pthread_rwlockattr_getkind_np F
|
|
GLIBC_2.1 pthread_rwlockattr_getpshared F
|
|
GLIBC_2.1 pthread_rwlockattr_init F
|
|
GLIBC_2.1 pthread_rwlockattr_setkind_np F
|
|
GLIBC_2.1 pthread_rwlockattr_setpshared F
|
|
GLIBC_2.1 pthread_setconcurrency F
|
|
GLIBC_2.1 sem_destroy F
|
|
GLIBC_2.1 sem_getvalue F
|
|
GLIBC_2.1 sem_init F
|
|
GLIBC_2.1 sem_post F
|
|
GLIBC_2.1 sem_trywait F
|
|
GLIBC_2.1 sem_wait F
|
|
GLIBC_2.1.1 sem_close F
|
|
GLIBC_2.1.1 sem_open F
|
|
GLIBC_2.1.1 sem_unlink F
|
|
GLIBC_2.1.2 __libpthread_version_placeholder F
|
|
GLIBC_2.11 pthread_sigqueue F
|
|
GLIBC_2.12 pthread_getname_np F
|
|
GLIBC_2.12 pthread_mutex_consistent F
|
|
GLIBC_2.12 pthread_mutexattr_getrobust F
|
|
GLIBC_2.12 pthread_mutexattr_setrobust F
|
|
GLIBC_2.12 pthread_setname_np F
|
|
GLIBC_2.18 pthread_getattr_default_np F
|
|
GLIBC_2.18 pthread_setattr_default_np F
|
|
GLIBC_2.2 __open64 F
|
|
GLIBC_2.2 __pread64 F
|
|
GLIBC_2.2 __pthread_rwlock_destroy F
|
|
GLIBC_2.2 __pthread_rwlock_init F
|
|
GLIBC_2.2 __pthread_rwlock_rdlock F
|
|
GLIBC_2.2 __pthread_rwlock_tryrdlock F
|
|
GLIBC_2.2 __pthread_rwlock_trywrlock F
|
|
GLIBC_2.2 __pthread_rwlock_unlock F
|
|
GLIBC_2.2 __pthread_rwlock_wrlock F
|
|
GLIBC_2.2 __pwrite64 F
|
|
GLIBC_2.2 __res_state F
|
|
GLIBC_2.2 lseek64 F
|
|
GLIBC_2.2 open64 F
|
|
GLIBC_2.2 pread F
|
|
GLIBC_2.2 pread64 F
|
|
GLIBC_2.2 pthread_attr_getstack F
|
|
GLIBC_2.2 pthread_attr_setstack F
|
|
GLIBC_2.2 pthread_barrier_destroy F
|
|
GLIBC_2.2 pthread_barrier_init F
|
|
GLIBC_2.2 pthread_barrier_wait F
|
|
GLIBC_2.2 pthread_barrierattr_destroy F
|
|
GLIBC_2.2 pthread_barrierattr_init F
|
|
GLIBC_2.2 pthread_barrierattr_setpshared F
|
|
GLIBC_2.2 pthread_condattr_getpshared F
|
|
GLIBC_2.2 pthread_condattr_setpshared F
|
|
GLIBC_2.2 pthread_getcpuclockid F
|
|
GLIBC_2.2 pthread_mutex_timedlock F
|
|
GLIBC_2.2 pthread_mutexattr_getpshared F
|
|
GLIBC_2.2 pthread_mutexattr_setpshared F
|
|
GLIBC_2.2 pthread_rwlock_timedrdlock F
|
|
GLIBC_2.2 pthread_rwlock_timedwrlock F
|
|
GLIBC_2.2 pthread_spin_destroy F
|
|
GLIBC_2.2 pthread_spin_init F
|
|
GLIBC_2.2 pthread_spin_lock F
|
|
GLIBC_2.2 pthread_spin_trylock F
|
|
GLIBC_2.2 pthread_spin_unlock F
|
|
GLIBC_2.2 pthread_yield F
|
|
GLIBC_2.2 pwrite F
|
|
GLIBC_2.2 pwrite64 F
|
|
GLIBC_2.2 sem_timedwait F
|
|
GLIBC_2.2.3 pthread_getattr_np F
|
|
GLIBC_2.2.6 __nanosleep F
|
|
GLIBC_2.28 call_once F
|
|
GLIBC_2.28 cnd_broadcast F
|
|
GLIBC_2.28 cnd_destroy F
|
|
GLIBC_2.28 cnd_init F
|
|
GLIBC_2.28 cnd_signal F
|
|
GLIBC_2.28 cnd_timedwait F
|
|
GLIBC_2.28 cnd_wait F
|
|
GLIBC_2.28 mtx_destroy F
|
|
GLIBC_2.28 mtx_init F
|
|
GLIBC_2.28 mtx_lock F
|
|
GLIBC_2.28 mtx_timedlock F
|
|
GLIBC_2.28 mtx_trylock F
|
|
GLIBC_2.28 mtx_unlock F
|
|
GLIBC_2.28 thrd_create F
|
|
GLIBC_2.28 thrd_detach F
|
|
GLIBC_2.28 thrd_exit F
|
|
GLIBC_2.28 thrd_join F
|
|
GLIBC_2.28 tss_create F
|
|
GLIBC_2.28 tss_delete F
|
|
GLIBC_2.28 tss_get F
|
|
GLIBC_2.28 tss_set F
|
|
GLIBC_2.3.2 pthread_cond_broadcast F
|
|
GLIBC_2.3.2 pthread_cond_destroy F
|
|
GLIBC_2.3.2 pthread_cond_init F
|
|
GLIBC_2.3.2 pthread_cond_signal F
|
|
GLIBC_2.3.2 pthread_cond_timedwait F
|
|
GLIBC_2.3.2 pthread_cond_wait F
|
|
GLIBC_2.3.3 __pthread_cleanup_routine F
|
|
GLIBC_2.3.3 __pthread_register_cancel F
|
|
GLIBC_2.3.3 __pthread_register_cancel_defer F
|
|
GLIBC_2.3.3 __pthread_unregister_cancel F
|
|
GLIBC_2.3.3 __pthread_unregister_cancel_restore F
|
|
GLIBC_2.3.3 __pthread_unwind_next F
|
|
GLIBC_2.3.3 pthread_attr_getaffinity_np F
|
|
GLIBC_2.3.3 pthread_attr_setaffinity_np F
|
|
GLIBC_2.3.3 pthread_attr_setstack F
|
|
GLIBC_2.3.3 pthread_attr_setstacksize F
|
|
GLIBC_2.3.3 pthread_barrierattr_getpshared F
|
|
GLIBC_2.3.3 pthread_condattr_getclock F
|
|
GLIBC_2.3.3 pthread_condattr_setclock F
|
|
GLIBC_2.3.3 pthread_getaffinity_np F
|
|
GLIBC_2.3.3 pthread_setaffinity_np F
|
|
GLIBC_2.3.3 pthread_timedjoin_np F
|
|
GLIBC_2.3.3 pthread_tryjoin_np F
|
|
GLIBC_2.3.4 pthread_attr_getaffinity_np F
|
|
GLIBC_2.3.4 pthread_attr_setaffinity_np F
|
|
GLIBC_2.3.4 pthread_getaffinity_np F
|
|
GLIBC_2.3.4 pthread_setaffinity_np F
|
|
GLIBC_2.3.4 pthread_setschedprio F
|
|
GLIBC_2.30 pthread_cond_clockwait F
|
|
GLIBC_2.30 sem_clockwait F
|
|
GLIBC_2.4 pthread_mutex_consistent_np F
|
|
GLIBC_2.4 pthread_mutex_getprioceiling F
|
|
GLIBC_2.4 pthread_mutex_setprioceiling F
|
|
GLIBC_2.4 pthread_mutexattr_getprioceiling F
|
|
GLIBC_2.4 pthread_mutexattr_getprotocol F
|
|
GLIBC_2.4 pthread_mutexattr_getrobust_np F
|
|
GLIBC_2.4 pthread_mutexattr_setprioceiling F
|
|
GLIBC_2.4 pthread_mutexattr_setprotocol F
|
|
GLIBC_2.4 pthread_mutexattr_setrobust_np F
|