Searched defs:compareAndSet (Results 1 - 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DAtomicBoolean.java99 public final boolean compareAndSet(boolean expect, boolean update) { method in class:AtomicBoolean
111 * only rarely an appropriate alternative to {@code compareAndSet}.
152 } while (!compareAndSet(prev, newValue));
H A DAtomicReference.java117 public final boolean compareAndSet(V expect, V update) { method in class:AtomicReference
127 * only rarely an appropriate alternative to {@code compareAndSet}.
163 } while (!compareAndSet(prev, next));
182 } while (!compareAndSet(prev, next));
206 } while (!compareAndSet(prev, next));
230 } while (!compareAndSet(prev, next));
H A DAtomicInteger.java133 public final boolean compareAndSet(int expect, int update) { method in class:AtomicInteger
143 * only rarely an appropriate alternative to {@code compareAndSet}.
224 } while (!compareAndSet(prev, next));
243 } while (!compareAndSet(prev, next));
267 } while (!compareAndSet(prev, next));
291 } while (!compareAndSet(prev, next));
H A DAtomicIntegerFieldUpdater.java56 * <p>Note that the guarantees of the {@code compareAndSet}
61 * {@code compareAndSet} and {@code set} on the same updater.
101 * other calls to {@code compareAndSet} and {@code set}, but not
111 public abstract boolean compareAndSet(T obj, int expect, int update); method in class:AtomicIntegerFieldUpdater
117 * other calls to {@code compareAndSet} and {@code set}, but not
122 * only rarely an appropriate alternative to {@code compareAndSet}.
136 * store with respect to subsequent invocations of {@code compareAndSet}.
174 } while (!compareAndSet(obj, prev, newValue));
190 } while (!compareAndSet(obj, prev, next));
206 } while (!compareAndSet(ob
468 public final boolean compareAndSet(T obj, int expect, int update) { method in class:AtomicIntegerFieldUpdater.AtomicIntegerFieldUpdaterImpl
[all...]
H A DAtomicLong.java149 public final boolean compareAndSet(long expect, long update) { method in class:AtomicLong
159 * only rarely an appropriate alternative to {@code compareAndSet}.
240 } while (!compareAndSet(prev, next));
259 } while (!compareAndSet(prev, next));
283 } while (!compareAndSet(prev, next));
307 } while (!compareAndSet(prev, next));
H A DAtomicMarkableReference.java117 * only rarely an appropriate alternative to {@code compareAndSet}.
129 return compareAndSet(expectedReference, newReference,
145 public boolean compareAndSet(V expectedReference, method in class:AtomicMarkableReference
H A DAtomicReferenceArray.java176 public final boolean compareAndSet(int i, E expect, E update) { method in class:AtomicReferenceArray
190 * only rarely an appropriate alternative to {@code compareAndSet}.
198 return compareAndSet(i, expect, update);
H A DAtomicReferenceFieldUpdater.java68 * return leftUpdater.compareAndSet(this, expect, update);
73 * <p>Note that the guarantees of the {@code compareAndSet}
78 * {@code compareAndSet} and {@code set} on the same updater.
123 * other calls to {@code compareAndSet} and {@code set}, but not
131 public abstract boolean compareAndSet(T obj, V expect, V update); method in class:AtomicReferenceFieldUpdater
137 * other calls to {@code compareAndSet} and {@code set}, but not
142 * only rarely an appropriate alternative to {@code compareAndSet}.
154 * store with respect to subsequent invocations of {@code compareAndSet}.
192 } while (!compareAndSet(obj, prev, newValue));
212 } while (!compareAndSet(ob
409 public final boolean compareAndSet(T obj, V expect, V update) { method in class:AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl
[all...]
H A DAtomicStampedReference.java117 * only rarely an appropriate alternative to {@code compareAndSet}.
129 return compareAndSet(expectedReference, newReference,
145 public boolean compareAndSet(V expectedReference, method in class:AtomicStampedReference
H A DAtomicIntegerArray.java164 public final boolean compareAndSet(int i, int expect, int update) { method in class:AtomicIntegerArray
178 * only rarely an appropriate alternative to {@code compareAndSet}.
186 return compareAndSet(i, expect, update);
H A DAtomicLongArray.java163 public final boolean compareAndSet(int i, long expect, long update) { method in class:AtomicLongArray
177 * only rarely an appropriate alternative to {@code compareAndSet}.
185 return compareAndSet(i, expect, update);
H A DAtomicLongFieldUpdater.java56 * <p>Note that the guarantees of the {@code compareAndSet}
61 * {@code compareAndSet} and {@code set} on the same updater.
104 * other calls to {@code compareAndSet} and {@code set}, but not
114 public abstract boolean compareAndSet(T obj, long expect, long update); method in class:AtomicLongFieldUpdater
120 * other calls to {@code compareAndSet} and {@code set}, but not
125 * only rarely an appropriate alternative to {@code compareAndSet}.
139 * store with respect to subsequent invocations of {@code compareAndSet}.
177 } while (!compareAndSet(obj, prev, newValue));
193 } while (!compareAndSet(obj, prev, next));
209 } while (!compareAndSet(ob
443 public final boolean compareAndSet(T obj, long expect, long update) { method in class:AtomicLongFieldUpdater.CASUpdater
573 public final boolean compareAndSet(T obj, long expect, long update) { method in class:AtomicLongFieldUpdater.LockedUpdater
[all...]
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DVarHandle.java89 * For example, the access mode method {@link #compareAndSet} specifies that if
95 * is {@code String}. The access mode type for {@code compareAndSet} on this
104 * boolean r = avh.compareAndSet(sa, 10, "expected", "new");
143 * {@link #compareAndSet compareAndSet},
731 * compareAndSet} must match the access mode type that is the result of
753 boolean compareAndSet(Object... args); method in class:VarHandle
1696 * {@link VarHandle#compareAndSet VarHandle.compareAndSet}
1698 COMPARE_AND_SET("compareAndSet", AccessTyp
[all...]

Completed in 176 milliseconds