diff options
-rw-r--r-- | rt/aio_suspend.c | 5 | ||||
-rw-r--r-- | sysdeps/nptl/aio_misc.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/rt/aio_suspend.c b/rt/aio_suspend.c index 2257cd8..0500029 100644 --- a/rt/aio_suspend.c +++ b/rt/aio_suspend.c @@ -195,8 +195,9 @@ ___aio_suspend_time64 (const struct aiocb *const list[], int nent, result = do_aio_misc_wait (&cntr, timeout == NULL ? NULL : &ts); #else struct timespec ts32 = valid_timespec64_to_timespec (ts); - result = pthread_cond_timedwait (&cond, &__aio_requests_mutex, - timeout == NULL ? NULL : &ts32); + result = __pthread_cond_clockwait (&cond, &__aio_requests_mutex, + CLOCK_MONOTONIC, + timeout == NULL ? NULL : &ts32); #endif #if PTHREAD_IN_LIBC diff --git a/sysdeps/nptl/aio_misc.h b/sysdeps/nptl/aio_misc.h index ddc5acc..87fd759 100644 --- a/sysdeps/nptl/aio_misc.h +++ b/sysdeps/nptl/aio_misc.h @@ -50,7 +50,7 @@ FUTEX_PRIVATE); \ else \ status = __futex_abstimed_wait64 ((unsigned int *) futexaddr, \ - oldval, CLOCK_REALTIME, timeout, FUTEX_PRIVATE); \ + oldval, CLOCK_MONOTONIC, timeout, FUTEX_PRIVATE); \ if (status != EAGAIN) \ break; \ \ |