src/Pure/Concurrent/future.ML
changeset 50916 fd902b616b48
parent 50914 fe4714886d92
child 50931 a7484a7b6c8a
equal deleted inserted replaced
50915:12de8ea66f54 50916:fd902b616b48
   436 
   436 
   437 
   437 
   438 (* results *)
   438 (* results *)
   439 
   439 
   440 fun error_msg pos ((serial, msg), exec_id) =
   440 fun error_msg pos ((serial, msg), exec_id) =
   441   if is_none exec_id orelse exec_id = Position.get_id pos
   441   Position.setmp_thread_data pos (fn () =>
   442   then Output.error_msg' (serial, msg) else warning msg;
   442     if is_none exec_id orelse exec_id = Position.get_id pos
       
   443     then Output.error_msg' (serial, msg) else warning msg) ();
   443 
   444 
   444 fun identify_result pos res =
   445 fun identify_result pos res =
   445   (case res of
   446   (case res of
   446     Exn.Exn exn =>
   447     Exn.Exn exn =>
   447       let val exec_id =
   448       let val exec_id =