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.1 by jsr166, Sat Jul 25 01:06:20 2009 UTC vs.
Revision 1.2 by jsr166, Sun Jul 26 07:04:29 2009 UTC

# Line 942 | Line 942 | public class Phaser {
942      }
943  
944      private static final sun.misc.Unsafe UNSAFE = sun.misc.Unsafe.getUnsafe();
945 <    static final long stateOffset =
945 >    private static final long stateOffset =
946          fieldOffset("state", Phaser.class);
947  
948 <    final boolean casState(long cmp, long val) {
948 >    private final boolean casState(long cmp, long val) {
949          return UNSAFE.compareAndSwapLong(this, stateOffset, cmp, val);
950      }
951   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines