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

Comparing jsr166/src/jsr166y/Phaser.java (file contents):
Revision 1.60 by dl, Sun Nov 28 15:49:49 2010 UTC vs.
Revision 1.61 by jsr166, Sun Nov 28 21:21:03 2010 UTC

# Line 385 | Line 385 | public class Phaser {
385              else if (parties != 0)               // wait for onAdvance
386                  root.internalAwaitAdvance(phase, null);
387              else {                               // 1st registration of child
388 <                synchronized(this) {             // register parent first
388 >                synchronized (this) {            // register parent first
389                      if (reconcileState() == s) { // recheck under lock
390                          parent.doRegister(1);    // OK if throws IllegalState
391                          for (;;) {               // simpler form of outer loop

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines