mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
b_queue: use broadcast instead of signal
This commit is contained in:
parent
efafd34a9e
commit
fc5b243df5
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ let push (self : _ t) x : unit =
|
|||
) else (
|
||||
let was_empty = Queue.is_empty self.q in
|
||||
Queue.push x self.q;
|
||||
if was_empty then Condition.signal self.cond;
|
||||
if was_empty then Condition.broadcast self.cond;
|
||||
Mutex.unlock self.mutex
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue