simplified thread creation via SimpleThread;
authorwenzelm
Fri, 03 Oct 2008 17:07:41 +0200
changeset 28479 8b6af52424f6
parent 28478 855ca2dcc03d
child 28480 7aef230bd145
simplified thread creation via SimpleThread;
src/HOL/Tools/atp_thread.ML
--- a/src/HOL/Tools/atp_thread.ML	Fri Oct 03 17:07:39 2008 +0200
+++ b/src/HOL/Tools/atp_thread.ML	Fri Oct 03 17:07:41 2008 +0200
@@ -51,16 +51,14 @@
     unregistering is done by thread.
   *)
   fun atp_thread call_prover action_success description =
-    let val thread = Thread.fork(fn () =>
+    let val thread = SimpleThread.fork true (fn () =>
       let
       val answer = call_prover ()
       val _ = if isSome answer then action_success (valOf answer)
         else delayed_priority ("Sledgehammer: " ^ description ^ "\n  failed.")
       in AtpManager.unregister (isSome answer)
       end
-      handle Interrupt => delayed_priority ("Sledgehammer: " ^ description ^ "\n  interrupted.")
-    ,[Thread.EnableBroadcastInterrupt true,
-     Thread.InterruptState Thread.InterruptAsynch])
+      handle Interrupt => delayed_priority ("Sledgehammer: " ^ description ^ "\n  interrupted."))
     in (thread, description) end
 
   (* Settings for path and filename to problemfiles *)