async_state: report within proper transaction context;
authorwenzelm
Mon, 05 Jul 2010 20:36:39 +0200
changeset 37711 f1ea60bb7754
parent 37710 3f499df0751f
child 37712 7f25bf4b4bca
async_state: report within proper transaction context;
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Mon Jul 05 14:35:00 2010 +0200
+++ b/src/Pure/Isar/toplevel.ML	Mon Jul 05 20:36:39 2010 +0200
@@ -563,8 +563,10 @@
 
 fun async_state (tr as Transition {print, ...}) st =
   if print then
-    ignore (Future.fork_group (Task_Queue.new_group (Future.worker_group ()))
-      (fn () => Future.report (setmp_thread_position tr (fn () => print_state false st))))
+    ignore
+      (Future.fork_group (Task_Queue.new_group (Future.worker_group ()))
+        (fn () =>
+          setmp_thread_position tr (fn () => Future.report (fn () => print_state false st)) ()))
   else ();
 
 fun error_msg tr exn_info =