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.91 by jsr166, Sat Oct 8 20:37:20 2016 UTC vs.
Revision 1.92 by dl, Mon Dec 19 23:52:56 2016 UTC

# Line 150 | Line 150 | import java.util.concurrent.locks.LockSu
150   * void startTasks(List<Runnable> tasks, int iterations) {
151   *   Phaser phaser = new Phaser() {
152   *     protected boolean onAdvance(int phase, int registeredParties) {
153 < *       return phase >= iterations || registeredParties == 0;
153 > *       return phase >= iterations - 1 || registeredParties == 0;
154   *     }
155   *   };
156   *   phaser.register();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines