]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Remove futex_supports_exact_relative_timeouts
authorMike Crowe <mac@mcrowe.com>
Mon, 24 Jun 2019 20:18:00 +0000 (20:18 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 12 Jul 2019 13:36:25 +0000 (13:36 +0000)
commit1ff1373b3302e9e095dc4fd4d371451c00190780
treea2674e19f74165d5825c272dc7f4838c86d65ef8
parent65dd7e9ce36ca8485a68ed41ac731188b6473dd2
nptl: Remove futex_supports_exact_relative_timeouts

The only implementation of futex_supports_exact_relative_timeouts always
returns true. Let's remove it and all its callers.

* nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
that is only useful if futex_supports_exact_relative_timeouts ()
returns false.
* nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
Likewise.
* sysdeps/nptl/futex-internal.h: Remove comment about relative
timeouts potentially being imprecise since it's no longer true.
Remove declaration of futex_supports_exact_relative_timeouts.
* sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
of futex_supports_exact_relative_timeouts.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
nptl/pthread_cond_wait.c
nptl/pthread_condattr_setclock.c
sysdeps/nptl/futex-internal.h
sysdeps/unix/sysv/linux/futex-internal.h