Home
last modified time | relevance | path

Searched refs:expectedReference (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicStampedReference.java96 public boolean weakCompareAndSet(V expectedReference, in weakCompareAndSet() argument
100 return compareAndSet(expectedReference, newReference, in weakCompareAndSet()
116 public boolean compareAndSet(V expectedReference, in compareAndSet() argument
122 expectedReference == current.reference && in compareAndSet()
154 public boolean attemptStamp(V expectedReference, int newStamp) { in attemptStamp() argument
157 expectedReference == current.reference && in attemptStamp()
159 casPair(current, Pair.of(expectedReference, newStamp))); in attemptStamp()
DAtomicMarkableReference.java96 public boolean weakCompareAndSet(V expectedReference, in weakCompareAndSet() argument
100 return compareAndSet(expectedReference, newReference, in weakCompareAndSet()
116 public boolean compareAndSet(V expectedReference, in compareAndSet() argument
122 expectedReference == current.reference && in compareAndSet()
154 public boolean attemptMark(V expectedReference, boolean newMark) { in attemptMark() argument
157 expectedReference == current.reference && in attemptMark()
159 casPair(current, Pair.of(expectedReference, newMark))); in attemptMark()