src/Pure/Thy/thy_info.ML
changeset 32061 11f8ee55662d
parent 31542 3371a3c19bb1
child 32106 d7697e311d81
equal deleted inserted replaced
32060:b54cb3acbbe4 32061:11f8ee55662d
   348 fun schedule_futures task_graph =
   348 fun schedule_futures task_graph =
   349   let
   349   let
   350     val tasks = Graph.topological_order task_graph |> map_filter (fn name =>
   350     val tasks = Graph.topological_order task_graph |> map_filter (fn name =>
   351       (case Graph.get_node task_graph name of Task body => SOME (name, body) | _ => NONE));
   351       (case Graph.get_node task_graph name of Task body => SOME (name, body) | _ => NONE));
   352 
   352 
   353     val par_proofs = ! parallel_proofs;
   353     val par_proofs = ! parallel_proofs >= 1;
   354 
   354 
   355     fun fork (name, body) tab =
   355     fun fork (name, body) tab =
   356       let
   356       let
   357         val deps = Graph.imm_preds task_graph name
   357         val deps = Graph.imm_preds task_graph name
   358           |> map_filter (fn parent =>
   358           |> map_filter (fn parent =>