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

Comparing jsr166/src/jdk7/java/util/concurrent/atomic/AtomicLong.java (file contents):
Revision 1.2 by jsr166, Wed Jan 2 06:29:00 2013 UTC vs.
Revision 1.4 by jsr166, Sun Jan 18 20:17:32 2015 UTC

# Line 5 | Line 5
5   */
6  
7   package java.util.concurrent.atomic;
8 +
9   import sun.misc.Unsafe;
10  
11   /**
# Line 124 | Line 125 | public class AtomicLong extends Number i
125       * Atomically sets the value to the given updated value
126       * if the current value {@code ==} the expected value.
127       *
128 <     * <p>May <a href="package-summary.html#Spurious">fail spuriously</a>
129 <     * and does not provide ordering guarantees, so is only rarely an
130 <     * appropriate alternative to {@code compareAndSet}.
128 >     * <p><a href="package-summary.html#weakCompareAndSet">May fail
129 >     * spuriously and does not provide ordering guarantees</a>, so is
130 >     * only rarely an appropriate alternative to {@code compareAndSet}.
131       *
132       * @param expect the expected value
133       * @param update the new value

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines