1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
(***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Luc Maranget, projet Moscova, INRIA Rocquencourt *)
(* *)
(* Copyright 2005 Institut National de Recherche en Informatique et *)
(* en Automatique. All rights reserved. This file is distributed *)
(* under the terms of the Q Public License version 1.0. *)
(* *)
(***********************************************************************)
(* $Id: join_queue.mli 7127 2005-10-13 17:28:32Z maranget $ *)
(*****************)
(* Sender queues *)
(*****************)
(*
BEWARE: for wait_empty to work, there mute be exactly ONE thread
performing get's (and clean ?)
*)
type 'a t
val create : unit -> 'a t
val put : 'a t -> 'a -> unit
val get : 'a t -> 'a
val wait_empty : 'a t -> unit
val clean : 'a t -> ('a -> unit) -> unit
|