diff options
author | Nicolai Hähnle <[email protected]> | 2017-11-13 14:35:50 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-11-20 18:15:49 +0100 |
commit | a6e831172314f3f76d1b795209f6623e251483b8 (patch) | |
tree | 91e69f8b9ada8a45130c2b6bf7518d5b9daa2915 /src/util | |
parent | 764bd6ef96d5a3247f18c0016d57c95edd9d4102 (diff) |
util/u_queue: fix timeout handling in util_queue_fence_wait_timeout
Fixes: e3a8013de8ca ("util/u_queue: add util_queue_fence_wait_timeout")
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/u_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_queue.c b/src/util/u_queue.c index 43c28ac6ef8..dba23f96456 100644 --- a/src/util/u_queue.c +++ b/src/util/u_queue.c @@ -113,7 +113,7 @@ do_futex_fence_wait(struct util_queue_fence *fence, int r = futex_wait(&fence->val, 2, timeout ? &ts : NULL); if (timeout && r < 0) { - if (errno == -ETIMEDOUT) + if (errno == ETIMEDOUT) return false; } |