diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2020-02-04 18:40:22 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2020-02-04 18:40:22 +0000 |
commit | 6ef8920543a20488a9340fef9902f83bbecb252c (patch) | |
tree | 02bd35b6b6727ca5405343f034188e9f39605ba7 /lib/mesa/src | |
parent | 54edfd297e70ada71840ef557e885f1646d3cb9a (diff) |
Fix absolute to relative timeout computation. ok jsg@, mpi@
Diffstat (limited to 'lib/mesa/src')
-rw-r--r-- | lib/mesa/src/util/futex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/util/futex.h b/lib/mesa/src/util/futex.h index cf8dd0206..b723d0657 100644 --- a/lib/mesa/src/util/futex.h +++ b/lib/mesa/src/util/futex.h @@ -99,7 +99,7 @@ static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespe { struct timespec tsrel, tsnow; clock_gettime(CLOCK_MONOTONIC, &tsnow); - timespecsub(timeout, &tsrel, &tsrel); + timespecsub(timeout, &tsnow, &tsrel); return futex(addr, FUTEX_WAIT, value, &tsrel, NULL); } |