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

Comparing jsr166/src/jdk7/java/util/concurrent/atomic/AtomicInteger.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 110 | Line 111 | public class AtomicInteger extends Numbe
111       * Atomically sets the value to the given updated value
112       * if the current value {@code ==} the expected value.
113       *
114 <     * <p>May <a href="package-summary.html#Spurious">fail spuriously</a>
115 <     * and does not provide ordering guarantees, so is only rarely an
116 <     * appropriate alternative to {@code compareAndSet}.
114 >     * <p><a href="package-summary.html#weakCompareAndSet">May fail
115 >     * spuriously and does not provide ordering guarantees</a>, so is
116 >     * only rarely an appropriate alternative to {@code compareAndSet}.
117       *
118       * @param expect the expected value
119       * @param update the new value

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines