tuned;
authorwenzelm
Sun, 25 Aug 2013 20:43:10 +0200
changeset 53193 2ddc5e788f7c
parent 53192 04df1d236e1c
child 53194 1943db7bc34c
tuned;
src/Pure/PIDE/execution.ML
--- a/src/Pure/PIDE/execution.ML	Sun Aug 25 20:32:26 2013 +0200
+++ b/src/Pure/PIDE/execution.ML	Sun Aug 25 20:43:10 2013 +0200
@@ -80,23 +80,16 @@
 
 (* fork *)
 
-local
-
 fun status task markups =
   let val props = Markup.properties [(Markup.taskN, Task_Queue.str_of_task task)]
   in Output.status (implode (map (Markup.markup_only o props) markups)) end;
 
-fun register exec =
-  change_state (fn (execution, execs) => (execution, Inttab.cons_list exec execs));
-
-in
-
 fun fork {name, pos, pri} e =
   uninterruptible (fn _ => Position.setmp_thread_data pos (fn () =>
     let
       val exec_id = the_default 0 (Position.parse_id pos);
       val group = Future.worker_subgroup ();
-      val _ = register (exec_id, group);
+      val _ = change_state (apsnd (Inttab.cons_list (exec_id, group)));
 
       val future =
         (singleton o Future.forks)
@@ -122,8 +115,6 @@
       val _ = status (Future.task_of future) [Markup.forked];
     in future end)) ();
 
-end;
-
 
 (* cleanup *)