diff options
author | Enrico Tassi <Enrico.Tassi@inria.fr> | 2014-10-08 17:28:18 +0200 |
---|---|---|
committer | Enrico Tassi <Enrico.Tassi@inria.fr> | 2014-10-13 18:13:20 +0200 |
commit | 7cfcaa57a68ea9abde9e2558ceef86589aa26d6d (patch) | |
tree | 4a6b0795b7a4408b0651d34146329495b423ff29 /stm/asyncTaskQueue.mli | |
parent | e3a0a4d58b74d2113485ceabe4235567fda962c8 (diff) |
STM: primitives to snapshot a .vi while in interactive mode
Diffstat (limited to 'stm/asyncTaskQueue.mli')
-rw-r--r-- | stm/asyncTaskQueue.mli | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stm/asyncTaskQueue.mli b/stm/asyncTaskQueue.mli index ddbb28457..cd91ba129 100644 --- a/stm/asyncTaskQueue.mli +++ b/stm/asyncTaskQueue.mli @@ -61,6 +61,11 @@ module Make(T : Task) : sig val set_order : (T.task -> T.task -> int) -> unit - val dump : unit -> T.task list + (* Take a snapshot (non destructive but waits until all workers are + * enqueued) *) + val snapshot : unit -> T.task list + + (* Clears the queue, only if the worker prool is empty *) + val clear : unit -> unit end |