src/Pure/Concurrent/future.ML
changeset 62826 eb94e570c1a4
parent 62823 751bcf0473a7
child 62889 99c7f31615c2
--- a/src/Pure/Concurrent/future.ML	Sat Apr 02 23:14:08 2016 +0200
+++ b/src/Pure/Concurrent/future.ML	Sat Apr 02 23:29:05 2016 +0200
@@ -126,7 +126,7 @@
   Multithreading.sync_wait NONE NONE cond lock;
 
 fun wait_timeout timeout cond = (*requires SYNCHRONIZED*)
-  Multithreading.sync_wait NONE (SOME (Time.+ (Time.now (), timeout))) cond lock;
+  Multithreading.sync_wait NONE (SOME (Time.now () + timeout)) cond lock;
 
 fun signal cond = (*requires SYNCHRONIZED*)
   ConditionVar.signal cond;
@@ -280,7 +280,7 @@
 fun scheduler_next () = (*requires SYNCHRONIZED*)
   let
     val now = Time.now ();
-    val tick = Time.<= (Time.+ (! last_round, next_round), now);
+    val tick = ! last_round + next_round <= now;
     val _ = if tick then last_round := now else ();