Home
last modified time | relevance | path

Searched refs:weakCompareAndSetVolatile (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicLong.java310 if (weakCompareAndSetVolatile(prev, next)) in getAndUpdate()
332 if (weakCompareAndSetVolatile(prev, next)) in updateAndGet()
359 if (weakCompareAndSetVolatile(prev, next)) in getAndAccumulate()
386 if (weakCompareAndSetVolatile(prev, next)) in accumulateAndGet()
585 public final boolean weakCompareAndSetVolatile(long expectedValue, long newValue) { in weakCompareAndSetVolatile() method in AtomicLong
DAtomicInteger.java293 if (weakCompareAndSetVolatile(prev, next)) in getAndUpdate()
315 if (weakCompareAndSetVolatile(prev, next)) in updateAndGet()
342 if (weakCompareAndSetVolatile(prev, next)) in getAndAccumulate()
369 if (weakCompareAndSetVolatile(prev, next)) in accumulateAndGet()
570 public final boolean weakCompareAndSetVolatile(int expectedValue, int newValue) { in weakCompareAndSetVolatile() method in AtomicInteger
DAtomicReference.java189 if (weakCompareAndSetVolatile(prev, next)) in getAndUpdate()
211 if (weakCompareAndSetVolatile(prev, next)) in updateAndGet()
238 if (weakCompareAndSetVolatile(prev, next)) in getAndAccumulate()
265 if (weakCompareAndSetVolatile(prev, next)) in accumulateAndGet()
407 public final boolean weakCompareAndSetVolatile(V expectedValue, V newValue) { in weakCompareAndSetVolatile() method in AtomicReference
DAtomicLongArray.java280 if (weakCompareAndSetVolatile(i, prev, next)) in getAndUpdate()
304 if (weakCompareAndSetVolatile(i, prev, next)) in updateAndGet()
333 if (weakCompareAndSetVolatile(i, prev, next)) in getAndAccumulate()
362 if (weakCompareAndSetVolatile(i, prev, next)) in accumulateAndGet()
529 public final boolean weakCompareAndSetVolatile(int i, long expectedValue, long newValue) { in weakCompareAndSetVolatile() method in AtomicLongArray
DAtomicIntegerArray.java280 if (weakCompareAndSetVolatile(i, prev, next)) in getAndUpdate()
304 if (weakCompareAndSetVolatile(i, prev, next)) in updateAndGet()
333 if (weakCompareAndSetVolatile(i, prev, next)) in getAndAccumulate()
362 if (weakCompareAndSetVolatile(i, prev, next)) in accumulateAndGet()
529 public final boolean weakCompareAndSetVolatile(int i, int expectedValue, int newValue) { in weakCompareAndSetVolatile() method in AtomicIntegerArray
DAtomicReferenceArray.java211 if (weakCompareAndSetVolatile(i, prev, next)) in getAndUpdate()
235 if (weakCompareAndSetVolatile(i, prev, next)) in updateAndGet()
264 if (weakCompareAndSetVolatile(i, prev, next)) in getAndAccumulate()
293 if (weakCompareAndSetVolatile(i, prev, next)) in accumulateAndGet()
493 public final boolean weakCompareAndSetVolatile(int i, E expectedValue, E newValue) { in weakCompareAndSetVolatile() method in AtomicReferenceArray
DAtomicBoolean.java320 public final boolean weakCompareAndSetVolatile(boolean expectedValue, boolean newValue) { in weakCompareAndSetVolatile() method in AtomicBoolean
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DAtomicLongTest.java181 assertFalse(val.weakCompareAndSetVolatile(0, -1)); in testWeakCompareAndSetVolatile()
184 do { } while (!val.weakCompareAndSetVolatile(42, 0)); in testWeakCompareAndSetVolatile()
186 do { } while (!val.weakCompareAndSetVolatile(0, 5)); in testWeakCompareAndSetVolatile()
188 do { } while (!val.weakCompareAndSetVolatile(5, -1)); in testWeakCompareAndSetVolatile()
DAtomicIntegerTest.java181 assertFalse(val.weakCompareAndSetVolatile(0, -1)); in testWeakCompareAndSetVolatile()
184 do { } while (!val.weakCompareAndSetVolatile(42, 0)); in testWeakCompareAndSetVolatile()
186 do { } while (!val.weakCompareAndSetVolatile(0, 5)); in testWeakCompareAndSetVolatile()
188 do { } while (!val.weakCompareAndSetVolatile(5, -1)); in testWeakCompareAndSetVolatile()
DAtomicBooleanTest.java234 assertFalse(val.weakCompareAndSetVolatile(expected, newValue)); in testWeakCompareAndSetVolatile()
239 do { } while (!val.weakCompareAndSetVolatile(expected, newValue)); in testWeakCompareAndSetVolatile()
244 do { } while (!val.weakCompareAndSetVolatile(expected, newValue)); in testWeakCompareAndSetVolatile()
249 do { } while (!val.weakCompareAndSetVolatile(expected, newValue)); in testWeakCompareAndSetVolatile()
DAtomicIntegerArrayTest.java265 assertFalse(arr.weakCompareAndSetVolatile(i, 0, -1)); in testWeakCompareAndSetVolatile()
269 do { } while (!arr.weakCompareAndSetVolatile(i, expectedArray[i], i+1)); in testWeakCompareAndSetVolatile()
274 do { } while (!arr.weakCompareAndSetVolatile(i, expectedArray[i], i*2)); in testWeakCompareAndSetVolatile()
DAtomicLongArrayTest.java265 assertFalse(arr.weakCompareAndSetVolatile(i, 0, -1)); in testWeakCompareAndSetVolatile()
269 do { } while (!arr.weakCompareAndSetVolatile(i, expectedArray[i], i+1)); in testWeakCompareAndSetVolatile()
274 do { } while (!arr.weakCompareAndSetVolatile(i, expectedArray[i], i*2)); in testWeakCompareAndSetVolatile()
DAtomicReferenceTest.java366 assertFalse(val.weakCompareAndSetVolatile(Integer.valueOf(0), Integer.valueOf(-1))); in testWeakCompareAndSetVolatile()
372 do { } while (!val.weakCompareAndSetVolatile(currentValue, newValue)); in testWeakCompareAndSetVolatile()
378 do { } while (!val.weakCompareAndSetVolatile(currentValue, newValue)); in testWeakCompareAndSetVolatile()
384 do { } while (!val.weakCompareAndSetVolatile(currentValue, newValue)); in testWeakCompareAndSetVolatile()
DAtomicReferenceArrayTest.java373 … assertFalse(arr.weakCompareAndSetVolatile(i, Integer.valueOf(0), Integer.valueOf(-1))); in testWeakCompareAndSetVolatile()
377 do { } while (!arr.weakCompareAndSetVolatile(i, expectedArray[i], val)); in testWeakCompareAndSetVolatile()
384 do { } while (!arr.weakCompareAndSetVolatile(i, expectedArray[i], val)); in testWeakCompareAndSetVolatile()
/libcore/api/
Dcurrent.txt16491 method public final boolean weakCompareAndSetVolatile(boolean, boolean);
16529 method public final boolean weakCompareAndSetVolatile(int, int);
16564 method public final boolean weakCompareAndSetVolatile(int, int, int);
16623 method public final boolean weakCompareAndSetVolatile(long, long);
16658 method public final boolean weakCompareAndSetVolatile(int, long, long);
16718 method public final boolean weakCompareAndSetVolatile(V, V);
16747 method public final boolean weakCompareAndSetVolatile(int, E, E);