src/Pure/PIDE/command.ML
changeset 55113 da610b507799
parent 54846 84522727f9d3
child 55286 db3d3d99c69d
child 55892 5fed81762406
equal deleted inserted replaced
55112:22ee3fb9d596 55113:da610b507799
   316       exec_id :: map (fn Print {exec_id, ...} => exec_id) prints;
   316       exec_id :: map (fn Print {exec_id, ...} => exec_id) prints;
   317 
   317 
   318 local
   318 local
   319 
   319 
   320 fun run_print execution_id (Print {name, delay, pri, print_process, ...}) =
   320 fun run_print execution_id (Print {name, delay, pri, print_process, ...}) =
   321   if Multithreading.enabled () then
   321   if Multithreading.enabled () orelse pri <= 0 then
   322     let
   322     let
   323       val group = Future.worker_subgroup ();
   323       val group = Future.worker_subgroup ();
   324       fun fork () =
   324       fun fork () =
   325         memo_fork {name = name, group = SOME group, deps = [], pri = pri, interrupts = true}
   325         memo_fork {name = name, group = SOME group, deps = [], pri = pri, interrupts = true}
   326           execution_id print_process;
   326           execution_id print_process;