HomeSort by relevance Sort by last modified time
    Searched defs:compareAndSet (Results 1 - 25 of 40) sorted by null

1 2

  /libcore/luni/src/main/java/java/util/concurrent/atomic/
AtomicReference.java 84 public final boolean compareAndSet(V expect, V update) {
94 * only rarely an appropriate alternative to {@code compareAndSet}.
113 if (compareAndSet(x, newValue))
AtomicBoolean.java 69 public final boolean compareAndSet(boolean expect, boolean update) {
81 * only rarely an appropriate alternative to {@code compareAndSet}.
122 if (compareAndSet(current, newValue))
AtomicMarkableReference.java 88 * only rarely an appropriate alternative to {@code compareAndSet}.
100 return compareAndSet(expectedReference, newReference,
116 public boolean compareAndSet(V expectedReference,
AtomicStampedReference.java 88 * only rarely an appropriate alternative to {@code compareAndSet}.
100 return compareAndSet(expectedReference, newReference,
116 public boolean compareAndSet(V expectedReference,
AtomicInteger.java 91 if (compareAndSet(current, newValue))
105 public final boolean compareAndSet(int expect, int update) {
115 * only rarely an appropriate alternative to {@code compareAndSet}.
134 if (compareAndSet(current, next))
148 if (compareAndSet(current, next))
163 if (compareAndSet(current, next))
177 if (compareAndSet(current, next))
191 if (compareAndSet(current, next))
206 if (compareAndSet(current, next))
AtomicIntegerArray.java 137 public final boolean compareAndSet(int i, int expect, int update) {
151 * only rarely an appropriate alternative to {@code compareAndSet}.
159 return compareAndSet(i, expect, update);
AtomicIntegerFieldUpdater.java 21 * <p>Note that the guarantees of the {@code compareAndSet}
26 * {@code compareAndSet} and {@code set} on the same updater.
62 * other calls to {@code compareAndSet} and {@code set}, but not
72 public abstract boolean compareAndSet(T obj, int expect, int update);
78 * other calls to {@code compareAndSet} and {@code set}, but not
83 * only rarely an appropriate alternative to {@code compareAndSet}.
97 * store with respect to subsequent invocations of {@code compareAndSet}.
134 if (compareAndSet(obj, current, newValue))
150 if (compareAndSet(obj, current, next))
166 if (compareAndSet(obj, current, next)
    [all...]
AtomicLong.java 39 * Returns whether underlying JVM supports lockless CompareAndSet
105 if (compareAndSet(current, newValue))
119 public final boolean compareAndSet(long expect, long update) {
129 * only rarely an appropriate alternative to {@code compareAndSet}.
148 if (compareAndSet(current, next))
162 if (compareAndSet(current, next))
177 if (compareAndSet(current, next))
191 if (compareAndSet(current, next))
205 if (compareAndSet(current, next))
220 if (compareAndSet(current, next)
    [all...]
AtomicLongArray.java 136 public final boolean compareAndSet(int i, long expect, long update) {
150 * only rarely an appropriate alternative to {@code compareAndSet}.
158 return compareAndSet(i, expect, update);
AtomicReferenceArray.java 151 public final boolean compareAndSet(int i, E expect, E update) {
165 * only rarely an appropriate alternative to {@code compareAndSet}.
173 return compareAndSet(i, expect, update);
AtomicReferenceFieldUpdater.java 32 * return leftUpdater.compareAndSet(this, expect, update);
37 * <p>Note that the guarantees of the {@code compareAndSet}
42 * {@code compareAndSet} and {@code set} on the same updater.
82 * other calls to {@code compareAndSet} and {@code set}, but not
90 public abstract boolean compareAndSet(T obj, V expect, V update);
96 * other calls to {@code compareAndSet} and {@code set}, but not
101 * only rarely an appropriate alternative to {@code compareAndSet}.
113 * store with respect to subsequent invocations of {@code compareAndSet}.
150 if (compareAndSet(obj, current, newValue))
255 public boolean compareAndSet(T obj, V expect, V update)
    [all...]
AtomicLongFieldUpdater.java 21 * <p>Note that the guarantees of the {@code compareAndSet}
26 * {@code compareAndSet} and {@code set} on the same updater.
65 * other calls to {@code compareAndSet} and {@code set}, but not
75 public abstract boolean compareAndSet(T obj, long expect, long update);
81 * other calls to {@code compareAndSet} and {@code set}, but not
86 * only rarely an appropriate alternative to {@code compareAndSet}.
100 * store with respect to subsequent invocations of {@code compareAndSet}.
137 if (compareAndSet(obj, current, newValue))
153 if (compareAndSet(obj, current, next))
169 if (compareAndSet(obj, current, next)
    [all...]
  /external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/atomic/
AtomicInteger.java 54 public final boolean compareAndSet(int expect, int update) {
AtomicLong.java 54 public final boolean compareAndSet(long expect, long update) {
  /external/guava/guava/src/com/google/common/util/concurrent/
AtomicDouble.java 33 * values in methods such as {@link #compareAndSet} by comparing their
133 public final boolean compareAndSet(double expect, double update) {
134 return updater.compareAndSet(this,
148 * appropriate alternative to {@code compareAndSet}.
172 if (updater.compareAndSet(this, current, next)) {
190 if (updater.compareAndSet(this, current, next)) {
AtomicDoubleArray.java 28 * values in methods such as {@link #compareAndSet} by comparing their
145 public final boolean compareAndSet(int i, double expect, double update) {
146 return longs.compareAndSet(i,
161 * appropriate alternative to {@code compareAndSet}.
187 if (longs.compareAndSet(i, current, next)) {
206 if (longs.compareAndSet(i, current, next)) {
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
AtomicDoubleTest.java 97 * compareAndSet succeeds in changing value if equal to expected else fails
105 assertFalse(at.compareAndSet(unused, x));
107 assertTrue(at.compareAndSet(prev, x));
114 * compareAndSet in one thread enables another waiting for value
122 while (!at.compareAndSet(2.0, 3.0)) {
127 assertTrue(at.compareAndSet(1.0, 2.0));
271 * compareAndSet treats +0.0 and -0.0 as distinct values
275 assertFalse(at.compareAndSet(-0.0, 7.0));
278 assertTrue(at.compareAndSet(+0.0, -0.0));
280 assertFalse(at.compareAndSet(+0.0, 7.0))
    [all...]
AtomicDoubleArrayTest.java 130 aa.compareAndSet(index, 1.0, 2.0);
177 * compareAndSet succeeds in changing value if equal to expected else fails
186 assertFalse(aa.compareAndSet(i, unused, x));
188 assertTrue(aa.compareAndSet(i, prev, x));
196 * compareAndSet in one thread enables another waiting for value
205 while (!a.compareAndSet(0, 2.0, 3.0)) {
210 assertTrue(a.compareAndSet(0, 1.0, 2.0));
299 if (aa.compareAndSet(i, v, v - 1.0)) {
366 * compareAndSet treats +0.0 and -0.0 as distinct values
371 assertFalse(aa.compareAndSet(i, -0.0, 7.0))
    [all...]
JSR166TestCase.java 309 threadFailure.compareAndSet(null, t);
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
TreeMultiset.java 152 public boolean compareAndSet(T expected, T newValue) {
197 if (!rootReference.compareAndSet(
337 if (!rootReference.compareAndSet(root, cleared)) {
  /external/guava/guava/src/com/google/common/collect/
TreeMultiset.java 156 public boolean compareAndSet(T expected, T newValue) {
201 if (!rootReference.compareAndSet(
341 if (!rootReference.compareAndSet(root, cleared)) {
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/16/
android.jar 

Completed in 306 milliseconds

1 2