src/Pure/Concurrent/future.ML
changeset 41715 22f8c2483bd2
parent 41708 d2e6b1132df2
child 41737 1b225934c09d
equal deleted inserted replaced
41714:3bafa8ba51db 41715:22f8c2483bd2
   180       let
   180       let
   181         val res =
   181         val res =
   182           if ok then
   182           if ok then
   183             Exn.capture (fn () =>
   183             Exn.capture (fn () =>
   184               Multithreading.with_attributes Multithreading.private_interrupts
   184               Multithreading.with_attributes Multithreading.private_interrupts
   185                 (fn _ => Position.setmp_thread_data pos e ())) ()
   185                 (fn _ =>
       
   186                   Position.setmp_thread_data pos e () before Multithreading.interrupted ())) ()
   186           else Exn.interrupt_exn;
   187           else Exn.interrupt_exn;
   187       in assign_result group result res end;
   188       in assign_result group result res end;
   188   in (result, job) end;
   189   in (result, job) end;
   189 
   190 
   190 fun cancel_now group = (*requires SYNCHRONIZED*)
   191 fun cancel_now group = (*requires SYNCHRONIZED*)