proper values of no_interrupts, regular_interrupts;
authorwenzelm
Tue, 09 Sep 2008 23:48:36 +0200
changeset 28187 4062882c7df3
parent 28186 6a8417f36837
child 28188 51ccf7fa6f18
proper values of no_interrupts, regular_interrupts;
src/Pure/ML-Systems/multithreading.ML
--- a/src/Pure/ML-Systems/multithreading.ML	Tue Sep 09 23:30:05 2008 +0200
+++ b/src/Pure/ML-Systems/multithreading.ML	Tue Sep 09 23:48:36 2008 +0200
@@ -39,8 +39,11 @@
 val max_threads = ref (1: int);
 fun max_threads_value () = Int.max (! max_threads, 1);
 
-val no_interrupts = [];
-val regular_interrupts = [];
+val no_interrupts =
+  [Thread.EnableBroadcastInterrupt false, Thread.InterruptState Thread.InterruptDefer];
+
+val regular_interrupts =
+  [Thread.EnableBroadcastInterrupt true, Thread.InterruptState Thread.InterruptAsynchOnce];
 
 fun with_attributes _ f x = f [] x;