aboutsummaryrefslogtreecommitdiff
path: root/lib/system.ml
diff options
context:
space:
mode:
authorEnrico Tassi2014-07-23 11:54:36 +0200
committerEnrico Tassi2014-08-05 18:24:50 +0200
commit4e724634839726aa11534f16e4bfb95cd81232a4 (patch)
tree2114ba0a78c4df764d78ad260e30f5fa6854df95 /lib/system.ml
parent95e97b68744eeb8bf20811c3938d78912eb3e918 (diff)
STM: code restructured to reuse task queue for tactics
Diffstat (limited to 'lib/system.ml')
-rw-r--r--lib/system.ml7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/system.ml b/lib/system.ml
index 4188eb2b4a..59260fbf63 100644
--- a/lib/system.ml
+++ b/lib/system.ml
@@ -295,3 +295,10 @@ let with_time time f x =
let msg2 = if time then "" else " (failure)" in
msg_info (str msg ++ fmt_time_difference tstart tend ++ str msg2);
raise e
+
+let process_id () =
+ if Flags.async_proofs_is_worker () then !Flags.async_proofs_worker_id
+ else if Flags.async_proofs_is_master () then
+ Printf.sprintf "master:%d" (Thread.id (Thread.self ()))
+ else "master"
+