ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CompletableFuture.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CompletableFuture.java (file contents):
Revision 1.131 by jsr166, Mon Jul 7 20:48:08 2014 UTC vs.
Revision 1.132 by jsr166, Mon Jul 7 20:56:28 2014 UTC

# Line 1726 | Line 1726 | public class CompletableFuture<T> implem
1726          Signaller q = new Signaller(true, nanos, d == 0L ? 1L : d); // avoid 0
1727          boolean queued = false;
1728          Object r;
1729 +        // We intentionally don't spin here (as waitingGet does) because
1730 +        // the call to nanoTime() above acts much like a spin.
1731          while ((r = result) == null) {
1732              if (!queued)
1733                  queued = tryPushStack(q);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines