await: SYNCHRONIZED wait!
authorwenzelm
Mon, 08 Sep 2008 00:25:34 +0200
changeset 28163 8bf8c21296ca
parent 28162 55772e4e95e0
child 28164 a6bdc9b31477
await: SYNCHRONIZED wait!
src/Pure/Concurrent/future.ML
--- a/src/Pure/Concurrent/future.ML	Mon Sep 08 00:10:41 2008 +0200
+++ b/src/Pure/Concurrent/future.ML	Mon Sep 08 00:25:34 2008 +0200
@@ -190,7 +190,7 @@
 
     fun loop () =
       (case SYNCHRONIZED (fn () => ! r) of
-        NONE => (wait (); loop ())
+        NONE => (SYNCHRONIZED (fn () => wait ()); loop ())
       | SOME res => Exn.release res);
   in loop () end;