From ffe7fc6ff44ec94544123c47b3d01bdec05b3fe0 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Tue, 10 Feb 2015 08:34:00 +0100 Subject: *Queue: API to wake up all threads --- stm/tQueue.mli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stm/tQueue.mli') diff --git a/stm/tQueue.mli b/stm/tQueue.mli index bc3922b33a..7458de510f 100644 --- a/stm/tQueue.mli +++ b/stm/tQueue.mli @@ -14,7 +14,9 @@ val pop : ?picky:('a -> bool) -> ?destroy:bool ref -> 'a t -> 'a val push : 'a t -> 'a -> unit val set_order : 'a t -> ('a -> 'a -> int) -> unit val wait_until_n_are_waiting_and_queue_empty : int -> 'a t -> unit -val signal_destruction : 'a t -> unit + +(* Wake up all waiting threads *) +val broadcast : 'a t -> unit (* Non destructive *) val wait_until_n_are_waiting_then_snapshot : int -> 'a t -> 'a list -- cgit v1.2.3