diff options
| author | Maxime Dénès | 2017-12-13 23:57:43 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2017-12-13 23:57:43 +0100 |
| commit | 671c4dbd064884a042d8f2bea5186ab5c7eaaeec (patch) | |
| tree | 5b96358dbceed10a46fa42ecde293c0fe8d6ce7a /lib/control.ml | |
| parent | b1aaedb9e728702cccdb1bd126a714d9e075d14c (diff) | |
| parent | 50159f9c1748ccf1d66341d171081a998d116d2f (diff) | |
Merge PR #1108: [stm] Reorganize flags
Diffstat (limited to 'lib/control.ml')
| -rw-r--r-- | lib/control.ml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/control.ml b/lib/control.ml index d936d7557b..c6489938e8 100644 --- a/lib/control.ml +++ b/lib/control.ml @@ -12,15 +12,12 @@ let interrupt = ref false let steps = ref 0 -let are_we_threading = lazy ( - match !Flags.async_proofs_mode with - | Flags.APon -> true - | _ -> false) +let enable_thread_delay = ref false let check_for_interrupt () = if !interrupt then begin interrupt := false; raise Sys.Break end; incr steps; - if !steps = 1000 && Lazy.force are_we_threading then begin + if !enable_thread_delay && !steps = 1000 then begin Thread.delay 0.001; steps := 0; end |
