mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
fix notifier_sync
This commit is contained in:
parent
da6ac17049
commit
ee40e445d1
1 changed files with 4 additions and 2 deletions
|
|
@ -13,8 +13,10 @@ let delete = ignore
|
|||
|
||||
let[@inline] protect self f = Util_mutex.protect self.mutex f
|
||||
|
||||
(** NOTE: the mutex must be acquired *)
|
||||
let wait self = Condition.wait self.cond self.mutex
|
||||
let wait self =
|
||||
Mutex.lock self.mutex;
|
||||
Condition.wait self.cond self.mutex;
|
||||
Mutex.unlock self.mutex
|
||||
|
||||
(** Ensure we get signalled when the queue goes from empty to non-empty *)
|
||||
let register_bounded_queue (self : t) (bq : _ Bounded_queue.t) : unit =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue