aboutsummaryrefslogtreecommitdiffhomepage
path: root/stm/tQueue.mli
diff options
context:
space:
mode:
authorGravatar Alec Faithfull <alef@itu.dk>2015-10-06 14:20:22 +0200
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2015-10-09 11:01:49 +0200
commitf6b3704391de97ee544da9ae7316685cd2d9fae3 (patch)
tree68c2b7507386e0cea221893b7bd28d45c91d8b65 /stm/tQueue.mli
parent56ca108e63191e90c3d4169c37a4c97017e3c6ae (diff)
TQueue: Allow some tasks to be saved when clearing a TQueue
Diffstat (limited to 'stm/tQueue.mli')
-rw-r--r--stm/tQueue.mli1
1 files changed, 1 insertions, 0 deletions
diff --git a/stm/tQueue.mli b/stm/tQueue.mli
index f54af4df4..1df52d252 100644
--- a/stm/tQueue.mli
+++ b/stm/tQueue.mli
@@ -22,6 +22,7 @@ val broadcast : 'a t -> unit
val wait_until_n_are_waiting_then_snapshot : int -> 'a t -> 'a list
val clear : 'a t -> unit
+val clear_saving : 'a t -> ('a -> 'b option) -> 'b list
val is_empty : 'a t -> bool
exception BeingDestroyed