equal
deleted
inserted
replaced
55 if timeout <= min_timeout then |
55 if timeout <= min_timeout then |
56 NONE |
56 NONE |
57 else |
57 else |
58 let val y = f timeout x in |
58 let val y = f timeout x in |
59 (case get_time y of |
59 (case get_time y of |
60 SOME time => next_timeout := time |
60 SOME time => next_timeout := time_min (time, !next_timeout) |
61 | _ => ()); |
61 | _ => ()); |
62 SOME y |
62 SOME y |
63 end |
63 end |
64 end |
64 end |
65 in |
65 in |
66 map_filter I (Par_List.map apply_f xs) |
66 chop_groups (Multithreading.max_threads ()) xs |
|
67 |> map (map_filter I o Par_List.map apply_f) |
|
68 |> flat |
67 end |
69 end |
68 |
70 |
69 fun enrich_context_with_local_facts proof ctxt = |
71 fun enrich_context_with_local_facts proof ctxt = |
70 let |
72 let |
71 val thy = Proof_Context.theory_of ctxt |
73 val thy = Proof_Context.theory_of ctxt |