diff options
author | Mike Crowe <mac@mcrowe.com> | 2019-06-24 20:18:00 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-07-12 13:36:25 +0000 |
commit | 1ff1373b3302e9e095dc4fd4d371451c00190780 (patch) | |
tree | a2674e19f74165d5825c272dc7f4838c86d65ef8 /nptl/pthread_cond_wait.c | |
parent | 65dd7e9ce36ca8485a68ed41ac731188b6473dd2 (diff) | |
download | glibc-1ff1373b3302e9e095dc4fd4d371451c00190780.tar.gz glibc-1ff1373b3302e9e095dc4fd4d371451c00190780.tar.xz glibc-1ff1373b3302e9e095dc4fd4d371451c00190780.zip |
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>
Diffstat (limited to 'nptl/pthread_cond_wait.c')
-rw-r--r-- | nptl/pthread_cond_wait.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/nptl/pthread_cond_wait.c b/nptl/pthread_cond_wait.c index 68ec754003..450bf66b34 100644 --- a/nptl/pthread_cond_wait.c +++ b/nptl/pthread_cond_wait.c @@ -674,11 +674,6 @@ __pthread_cond_clockwait (pthread_cond_t *cond, pthread_mutex_t *mutex, if (!futex_abstimed_supported_clockid (clockid)) return EINVAL; - /* If we do not support waiting using CLOCK_MONOTONIC, return an error. */ - if (clockid == CLOCK_MONOTONIC - && !futex_supports_exact_relative_timeouts ()) - return EINVAL; - return __pthread_cond_wait_common (cond, mutex, clockid, abstime); } weak_alias (__pthread_cond_clockwait, pthread_cond_clockwait); |