b_queue: use broadcast instead of signal

This commit is contained in:
Corentin Leruth 2023-08-26 06:34:36 +02:00 committed by Simon Cruanes
parent efafd34a9e
commit fc5b243df5

View file

@ -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
)