equal
deleted
inserted
replaced
397 | exec_ids (SOME (eval, prints)) = eval_exec_id eval :: map print_exec_id prints; |
397 | exec_ids (SOME (eval, prints)) = eval_exec_id eval :: map print_exec_id prints; |
398 |
398 |
399 local |
399 local |
400 |
400 |
401 fun run_print execution_id (Print {name, delay, pri, print_process, ...}) = |
401 fun run_print execution_id (Print {name, delay, pri, print_process, ...}) = |
402 if Multithreading.enabled () orelse pri <= 0 then |
402 if pri <= 0 orelse (Multithreading.enabled () andalso Options.default_bool "parallel_print") |
|
403 then |
403 let |
404 let |
404 val group = Future.worker_subgroup (); |
405 val group = Future.worker_subgroup (); |
405 fun fork () = |
406 fun fork () = |
406 memo_fork {name = name, group = SOME group, deps = [], pri = pri, interrupts = true} |
407 memo_fork {name = name, group = SOME group, deps = [], pri = pri, interrupts = true} |
407 execution_id print_process; |
408 execution_id print_process; |