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

Comparing jsr166/src/main/java/util/concurrent/Phaser.java (file contents):
Revision 1.74 by jsr166, Thu Aug 21 05:33:40 2014 UTC vs.
Revision 1.75 by jsr166, Thu Aug 21 05:36:39 2014 UTC

# Line 1106 | Line 1106 | public class Phaser {
1106  
1107          public boolean block() {
1108              while (!isReleasable()) {
1109 <                if (!timed)
1110 <                    LockSupport.park(this);
1111 <                else
1109 >                if (timed)
1110                      LockSupport.parkNanos(this, nanos);
1111 +                else
1112 +                    LockSupport.park(this);
1113              }
1114              return true;
1115          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines