glibc/sysdeps/nptl
Adhemerval Zanella a3e7aead03 nptl: Replace __futex_clocklock_wait64 with __futex_abstimed_wait64
For non null timeouts, the __futex_clocklock_wait64 creates an a
relative timeout by subtracting the current time from the input
argument.  The same behavior can be obtained with FUTEX_WAIT_BITSET
without the need to calculate the relative timeout.  Besides consolidate
the code it also avoid the possible relative timeout issues [1].

The __futex_abstimed_wait64 needs also to return EINVAL syscall
errors.

Checked on x86_64-linux-gnu and i686-linux-gnu.

[1] https://sourceware.org/pipermail/libc-alpha/2020-November/119881.html

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2020-11-25 10:43:18 -03:00
..
bits nptl: Move nptl-specific types to separate header 2020-02-09 13:56:48 +01:00
sys
aio_misc.h
allocrtsig.c
dl-thread_gscope_wait.c nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
dl-tunables.list
fork.c Linux: set_robust_list syscall number is always available 2020-03-03 12:49:44 +01:00
fork.h
futex-internal.c nptl: Replace __futex_clocklock_wait64 with __futex_abstimed_wait64 2020-11-25 10:43:18 -03:00
futex-internal.h nptl: Replace __futex_clocklock_wait64 with __futex_abstimed_wait64 2020-11-25 10:43:18 -03:00
gai_misc.h
Implies
internaltypes.h nptl: Add pthread_attr_setsigmask_np, pthread_attr_getsigmask_np 2020-06-02 11:59:18 +02:00
jmp-unwind.c
libc-lock.h
libc-lockP.h
librt-cancellation.c
lowlevellock-futex.h linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
lowlevellock.h
Makeconfig
Makefile nptl: Add missing cancellation flags on futex_internal and pselect32 2020-10-07 15:24:04 -03:00
malloc-machine.h
proc_service.h
pthread-functions.h nptl: Move pthread_setschedparam implementation into libc 2020-02-20 08:57:01 +01:00
pthread-offsets.h nptl: update default pthread-offsets.h 2020-02-10 17:01:21 +01:00
pthread.h Avoid -Wstringop-overflow warning in pthread_cleanup_push macros 2020-10-30 22:25:42 +00:00
setxid.h
shm-directory.h
stdio-lock.h
Subdirs
tcb-offsets.h
thrd_create.c C11 threads: Move implementation to sysdeps/pthread 2020-02-09 13:56:48 +01:00
thread_db.h
timer_routines.h
tst-mqueue8x.c
unwind-forcedunwind.c