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

/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicBoolean.java69 public final boolean compareAndSet(boolean expect, boolean update) { method in class:AtomicBoolean
81 * appropriate alternative to {@code compareAndSet}.
122 if (compareAndSet(current, newValue))
H A DAtomicReference.java84 public final boolean compareAndSet(V expect, V update) { method in class:AtomicReference
94 * appropriate alternative to {@code compareAndSet}.
113 if (compareAndSet(x, newValue))
H A DAtomicReferenceFieldUpdater.java31 * return leftUpdater.compareAndSet(this, expect, update);
36 * <p>Note that the guarantees of the {@code compareAndSet}
41 * {@code compareAndSet} and {@code set} on the same updater.
79 * other calls to {@code compareAndSet} and {@code set}, but not
87 public abstract boolean compareAndSet(T obj, V expect, V update); method in class:AtomicReferenceFieldUpdater
93 * other calls to {@code compareAndSet} and {@code set}, but not
98 * appropriate alternative to {@code compareAndSet}.
110 * store with respect to subsequent invocations of {@code compareAndSet}.
147 if (compareAndSet(obj, current, newValue))
224 public boolean compareAndSet( method in class:AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl
[all...]
H A DAtomicInteger.java91 if (compareAndSet(current, newValue))
105 public final boolean compareAndSet(int expect, int update) { method in class:AtomicInteger
115 * 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))
H A DAtomicIntegerArray.java137 public final boolean compareAndSet(int i, int expect, int update) { method in class:AtomicIntegerArray
151 * appropriate alternative to {@code compareAndSet}.
159 return compareAndSet(i, expect, update);
H A DAtomicIntegerFieldUpdater.java20 * <p>Note that the guarantees of the {@code compareAndSet}
25 * {@code compareAndSet} and {@code set} on the same updater.
59 * other calls to {@code compareAndSet} and {@code set}, but not
69 public abstract boolean compareAndSet(T obj, int expect, int update); method in class:AtomicIntegerFieldUpdater
75 * other calls to {@code compareAndSet} and {@code set}, but not
80 * appropriate alternative to {@code compareAndSet}.
94 * store with respect to subsequent invocations of {@code compareAndSet}.
132 if (compareAndSet(obj, current, newValue))
148 if (compareAndSet(obj, current, next))
164 if (compareAndSet(ob
282 public boolean compareAndSet(T obj, int expect, int update) { method in class:AtomicIntegerFieldUpdater.AtomicIntegerFieldUpdaterImpl
[all...]
H A DAtomicLong.java105 if (compareAndSet(current, newValue))
119 public final boolean compareAndSet(long expect, long update) { method in class:AtomicLong
129 * 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))
H A DAtomicLongArray.java137 public final boolean compareAndSet(int i, long expect, long update) { method in class:AtomicLongArray
151 * appropriate alternative to {@code compareAndSet}.
159 return compareAndSet(i, expect, update);
H A DAtomicLongFieldUpdater.java20 * <p>Note that the guarantees of the {@code compareAndSet}
25 * {@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, long expect, long update); method in class:AtomicLongFieldUpdater
78 * other calls to {@code compareAndSet} and {@code set}, but not
83 * 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(ob
280 public boolean compareAndSet(T obj, long expect, long update) { method in class:AtomicLongFieldUpdater.CASUpdater
365 public boolean compareAndSet(T obj, long expect, long update) { method in class:AtomicLongFieldUpdater.LockedUpdater
[all...]
H A DAtomicMarkableReference.java88 * appropriate alternative to {@code compareAndSet}.
100 return compareAndSet(expectedReference, newReference,
116 public boolean compareAndSet(V expectedReference, method in class:AtomicMarkableReference
H A DAtomicReferenceArray.java152 public final boolean compareAndSet(int i, E expect, E update) { method in class:AtomicReferenceArray
166 * appropriate alternative to {@code compareAndSet}.
174 return compareAndSet(i, expect, update);
H A DAtomicStampedReference.java88 * appropriate alternative to {@code compareAndSet}.
100 return compareAndSet(expectedReference, newReference,
116 public boolean compareAndSet(V expectedReference, method in class:AtomicStampedReference

Completed in 737 milliseconds