projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
764bd6e
)
util/u_queue: fix timeout handling in util_queue_fence_wait_timeout
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Mon, 13 Nov 2017 13:35:50 +0000
(14:35 +0100)
committer
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Mon, 20 Nov 2017 17:15:49 +0000
(18:15 +0100)
Fixes: e3a8013de8ca ("util/u_queue: add util_queue_fence_wait_timeout")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/util/u_queue.c
patch
|
blob
|
history
diff --git
a/src/util/u_queue.c
b/src/util/u_queue.c
index 43c28ac6ef8cd7fff78630b03f4550a027fbd116..dba23f9645692f96cb6bd7178df54170da37adba 100644
(file)
--- 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;
}