aboutsummaryrefslogtreecommitdiffhomepage
path: root/stm/tQueue.mli
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-11-26 18:45:29 +0100
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-11-27 16:06:54 +0100
commitd86dbc9b9f4fbabd922b07e7c695f03cf6c03c43 (patch)
tree525b0552cf09f6ddfa347d5f4394f7c201306567 /stm/tQueue.mli
parent61209f27eb26dcb04a7d5428b9f2ab7f65f73ac8 (diff)
TQueue: let reader be picky when popping an item
E.g. let a worker pick up only jobs he is able to deal with.
Diffstat (limited to 'stm/tQueue.mli')
-rw-r--r--stm/tQueue.mli2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/tQueue.mli b/stm/tQueue.mli
index 230ce032a..5ee2cf99c 100644
--- a/stm/tQueue.mli
+++ b/stm/tQueue.mli
@@ -10,7 +10,7 @@
type 'a t
val create : unit -> 'a t
-val pop : 'a t -> 'a
+val pop : ?picky:('a -> bool) -> '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