aboutsummaryrefslogtreecommitdiffhomepage
path: root/stm/workerPool.mli
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-07-21 10:03:04 +0200
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2014-08-05 18:38:28 +0200
commit7dba9d3f3ce62246b9d8562d2818c63ba37b206e (patch)
treefbf0e133e160a5f7ff03f8a0b5bb4d0f47b43105 /stm/workerPool.mli
parent4e724634839726aa11534f16e4bfb95cd81232a4 (diff)
STM: new "par:" goal selector, like "all:" but in parallel
par: distributes the goals among a number of workers given by -async-proofs-tac-j (defaults to 2).
Diffstat (limited to 'stm/workerPool.mli')
-rw-r--r--stm/workerPool.mli6
1 files changed, 5 insertions, 1 deletions
diff --git a/stm/workerPool.mli b/stm/workerPool.mli
index d55b35c28..4e5512a4b 100644
--- a/stm/workerPool.mli
+++ b/stm/workerPool.mli
@@ -19,11 +19,15 @@ type spawn =
in_channel * out_channel * Worker.process
val init :
- size:int -> manager:(cancel:bool ref -> worker_id -> spawn -> unit) ->
+ size:int ->
+ manager:(cancel:bool ref -> die:bool ref -> worker_id -> spawn -> unit) ->
(int -> worker_id) -> unit
+val destroy : unit -> unit
+
val is_empty : unit -> bool
val n_workers : unit -> int
val cancel : worker_id -> unit
+val cancel_all : unit -> unit
(* The worker should call this function *)
val worker_handshake : in_channel -> out_channel -> unit