aboutsummaryrefslogtreecommitdiff
path: root/stm/spawned.ml
diff options
context:
space:
mode:
authorMaxime Dénès2017-12-13 23:57:43 +0100
committerMaxime Dénès2017-12-13 23:57:43 +0100
commit671c4dbd064884a042d8f2bea5186ab5c7eaaeec (patch)
tree5b96358dbceed10a46fa42ecde293c0fe8d6ce7a /stm/spawned.ml
parentb1aaedb9e728702cccdb1bd126a714d9e075d14c (diff)
parent50159f9c1748ccf1d66341d171081a998d116d2f (diff)
Merge PR #1108: [stm] Reorganize flags
Diffstat (limited to 'stm/spawned.ml')
-rw-r--r--stm/spawned.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/stm/spawned.ml b/stm/spawned.ml
index 6ab096abf9..fb5708f3a3 100644
--- a/stm/spawned.ml
+++ b/stm/spawned.ml
@@ -73,3 +73,9 @@ let get_channels () =
Printf.eprintf "Fatal error: ideslave communication channels not set.\n";
exit 1
| Some(ic, oc) -> ic, oc
+
+let process_id () =
+ Printf.sprintf "%d:%s:%d" (Unix.getpid ())
+ (if Flags.async_proofs_is_worker () then !Flags.async_proofs_worker_id
+ else "master")
+ (Thread.id (Thread.self ()))