diff options
author | Nicolai Hähnle <[email protected]> | 2017-10-22 17:38:46 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-11-09 13:58:10 +0100 |
commit | e3a8013de8ca854d21225be00f123ccf63f9060f (patch) | |
tree | b0163adc1cbfe8ac52e7c98987ebd30d1d4e8f25 /src/util/simple_mtx.h | |
parent | f1a364878431c8c5f4fd38b40b9766449e49f552 (diff) |
util/u_queue: add util_queue_fence_wait_timeout
v2:
- style fixes
- fix missing timeout handling in futex path
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util/simple_mtx.h')
-rw-r--r-- | src/util/simple_mtx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/simple_mtx.h b/src/util/simple_mtx.h index 9f9e40861f9..cd24b6f9eb9 100644 --- a/src/util/simple_mtx.h +++ b/src/util/simple_mtx.h @@ -83,7 +83,7 @@ simple_mtx_lock(simple_mtx_t *mtx) if (c != 2) c = __sync_lock_test_and_set(&mtx->val, 2); while (c != 0) { - futex_wait(&mtx->val, 2); + futex_wait(&mtx->val, 2, NULL); c = __sync_lock_test_and_set(&mtx->val, 2); } } |