diff -r 9e55e87434ff -r c3e3ac3ca091 src/Pure/Concurrent/task_queue.ML --- a/src/Pure/Concurrent/task_queue.ML Sat Feb 06 15:51:22 2010 +0100 +++ b/src/Pure/Concurrent/task_queue.ML Sat Feb 06 16:32:34 2010 +0100 @@ -127,7 +127,7 @@ val empty = make_queue Inttab.empty Task_Graph.empty; fun all_passive (Queue {jobs, ...}) = - Task_Graph.get_first NONE + Task_Graph.get_first ((fn Job _ => SOME () | Running _ => SOME () | Passive => NONE) o #2 o #1 o #2) jobs |> is_none; @@ -204,7 +204,7 @@ if is_ready deps group then SOME (task, group, rev list) else NONE | ready _ = NONE; in - (case Task_Graph.get_first NONE ready jobs of + (case Task_Graph.get_first ready jobs of NONE => (NONE, queue) | SOME (result as (task, _, _)) => let val jobs' = set_job task (Running thread) jobs