src/Pure/Concurrent/task_queue.ML
changeset 35012 c3e3ac3ca091
parent 34280 16bf3e9786a3
child 35242 1c80c29086d7
--- 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