diff options
author | Marek Olšák <[email protected]> | 2018-04-24 17:01:35 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 13:28:17 -0400 |
commit | 7083ac7290a0c37a45494437a45441112f3cc36c (patch) | |
tree | 3be67d858ff81749cdfa15937150456dab4712cd /src/util/u_queue.h | |
parent | 7772de5283cf30b06e75f9e4914a75f54ca37564 (diff) |
util/u_queue: fix a deadlock in util_queue_finish
Cc: 18.0 18.1 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/util/u_queue.h')
-rw-r--r-- | src/util/u_queue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/u_queue.h b/src/util/u_queue.h index d49f713e6ad..d702c4bce8d 100644 --- a/src/util/u_queue.h +++ b/src/util/u_queue.h @@ -200,6 +200,7 @@ struct util_queue_job { /* Put this into your context. */ struct util_queue { const char *name; + mtx_t finish_lock; /* only for util_queue_finish */ mtx_t lock; cnd_t has_queued_cond; cnd_t has_space_cond; |