aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/flags.ml7
-rw-r--r--lib/flags.mli4
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/flags.ml b/lib/flags.ml
index 75f149eb6..790acfef5 100644
--- a/lib/flags.ml
+++ b/lib/flags.ml
@@ -57,6 +57,13 @@ let async_proofs_always_delegate = ref false
let async_proofs_never_reopen_branch = ref false
let async_proofs_flags_for_workers = ref []
let async_proofs_worker_id = ref "master"
+type priority = Low | High
+let async_proofs_worker_priority = ref Low
+let string_of_priority = function Low -> "low" | High -> "high"
+let priority_of_string = function
+ | "low" -> Low
+ | "high" -> High
+ | _ -> raise (Invalid_argument "priority_of_string")
let async_proofs_is_worker () =
!async_proofs_worker_id <> "master"
diff --git a/lib/flags.mli b/lib/flags.mli
index 4697e4cac..11909c5fa 100644
--- a/lib/flags.mli
+++ b/lib/flags.mli
@@ -26,6 +26,10 @@ val async_proofs_always_delegate : bool ref
val async_proofs_never_reopen_branch : bool ref
val async_proofs_flags_for_workers : string list ref
val async_proofs_worker_id : string ref
+type priority = Low | High
+val async_proofs_worker_priority : priority ref
+val string_of_priority : priority -> string
+val priority_of_string : string -> priority
val debug : bool ref