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.44 by jsr166, Fri Dec 3 21:41:30 2010 UTC vs.
Revision 1.45 by jsr166, Fri Dec 3 22:00:21 2010 UTC

# Line 743 | Line 743 | public class Phaser {
743          while ((s = root.state) >= 0) {
744              long next = (s & ~(long)(MAX_PARTIES)) | TERMINATION_BIT;
745              if (UNSAFE.compareAndSwapLong(root, stateOffset, s, next)) {
746 <                releaseWaiters(0); // signal all threads
746 >                // signal all threads
747 >                releaseWaiters(0);
748                  releaseWaiters(1);
749                  return;
750              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines