diff options
author | jfrijters <jfrijters> | 2014-11-12 13:02:51 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2014-11-12 13:02:51 +0300 |
commit | 9c82db19fbb186d86d9f96e022a73e2740fc4cdf (patch) | |
tree | afa7b0a6fd1560f3c95ab936d99983b393c376e0 /openjdk/java | |
parent | 938815d13e29867709af72e0e6b59d0c29c642cc (diff) |
Bug fix. LockSupport.parkUntil() didn't convert milliseconds to nanoseconds.
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/util/concurrent/locks/LockSupport.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openjdk/java/util/concurrent/locks/LockSupport.java b/openjdk/java/util/concurrent/locks/LockSupport.java index 14112c3f..45a38112 100644 --- a/openjdk/java/util/concurrent/locks/LockSupport.java +++ b/openjdk/java/util/concurrent/locks/LockSupport.java @@ -316,7 +316,7 @@ public class LockSupport { public static void parkUntil(Object blocker, long deadline) { Thread t = Thread.currentThread(); setBlocker(t, blocker); - parkImpl(t, true, deadline); + parkImpl(t, true, deadline * 1000000); setBlocker(t, null); } @@ -432,7 +432,7 @@ public class LockSupport { * to wait until */ public static void parkUntil(long deadline) { - parkImpl(Thread.currentThread(), true, deadline); + parkImpl(Thread.currentThread(), true, deadline * 1000000); } /** |