/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
AtomicBoolean.java | 99 public final boolean compareAndSet(boolean expect, boolean update) { 111 * only rarely an appropriate alternative to {@code compareAndSet}. 152 } while (!compareAndSet(prev, newValue));
|
AtomicMarkableReference.java | 117 * only rarely an appropriate alternative to {@code compareAndSet}. 129 return compareAndSet(expectedReference, newReference, 145 public boolean compareAndSet(V expectedReference,
|
AtomicReference.java | 117 public final boolean compareAndSet(V expect, V update) { 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));
|
AtomicStampedReference.java | 117 * only rarely an appropriate alternative to {@code compareAndSet}. 129 return compareAndSet(expectedReference, newReference, 145 public boolean compareAndSet(V expectedReference,
|
AtomicInteger.java | 133 public final boolean compareAndSet(int expect, int update) { 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));
|
AtomicIntegerFieldUpdater.java | 56 * <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); 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(obj, prev, next)) [all...] |
AtomicLong.java | 69 * Returns whether underlying JVM supports lockless CompareAndSet 149 public final boolean compareAndSet(long expect, long update) { 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));
|
AtomicReferenceArray.java | 176 public final boolean compareAndSet(int i, E expect, E update) { 190 * only rarely an appropriate alternative to {@code compareAndSet}. 198 return compareAndSet(i, expect, update);
|
AtomicReferenceFieldUpdater.java | 68 * 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); 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(obj, prev, next)) [all...] |
/art/test/712-varhandle-invocations/src/ |
VarHandleAccessorExceptionTests.java | 145 vh.compareAndSet(this, 33, 44); 148 updated = (boolean) vh.compareAndSet(this, 44);
|
/cts/tests/app/app/src/android/app/stubs/ |
OrientationTestUtils.java | 80 assertTrue(mLatch.compareAndSet(null, latch));
|
/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) {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
AtomicStampedReferenceTest.java | 75 * compareAndSet succeeds in changing values if equal to expected reference 85 assertTrue(ai.compareAndSet(one, two, 0, 0)); 89 assertTrue(ai.compareAndSet(two, m3, 0, 1)); 93 assertFalse(ai.compareAndSet(two, m3, 1, 1)); 99 * compareAndSet in one thread enables another waiting for reference value 106 while (!ai.compareAndSet(two, three, 0, 0)) 111 assertTrue(ai.compareAndSet(one, two, 0, 0)); 119 * compareAndSet in one thread enables another waiting for stamp value 126 while (!ai.compareAndSet(one, one, 1, 2)) 131 assertTrue(ai.compareAndSet(one, one, 0, 1)) [all...] |
AtomicBooleanTest.java | 68 * compareAndSet succeeds in changing value if equal to expected else fails 72 assertTrue(ai.compareAndSet(true, false)); 74 assertTrue(ai.compareAndSet(false, false)); 76 assertFalse(ai.compareAndSet(true, false)); 78 assertTrue(ai.compareAndSet(false, true)); 83 * compareAndSet in one thread enables another waiting for value 90 while (!ai.compareAndSet(false, true)) Thread.yield(); 94 assertTrue(ai.compareAndSet(true, false));
|
AtomicIntegerFieldUpdaterTest.java | 51 // assertTrue(a.compareAndSet(this, 1, 2)); 52 // assertTrue(a.compareAndSet(this, 2, -4)); 54 // assertFalse(a.compareAndSet(this, -5, 7)); 56 // assertTrue(a.compareAndSet(this, -4, 7)); 68 // assertTrue(a.compareAndSet(obj, 72, 73)); 170 * compareAndSet succeeds in changing value if equal to expected else fails 176 assertTrue(a.compareAndSet(this, 1, 2)); 177 assertTrue(a.compareAndSet(this, 2, -4)); 179 assertFalse(a.compareAndSet(this, -5, 7)); 181 assertTrue(a.compareAndSet(this, -4, 7)) [all...] |
AtomicLongFieldUpdaterTest.java | 51 // assertTrue(a.compareAndSet(this, 1, 2)); 52 // assertTrue(a.compareAndSet(this, 2, -4)); 54 // assertFalse(a.compareAndSet(this, -5, 7)); 56 // assertTrue(a.compareAndSet(this, -4, 7)); 68 // assertTrue(a.compareAndSet(obj, 72L, 73L)); 170 * compareAndSet succeeds in changing value if equal to expected else fails 176 assertTrue(a.compareAndSet(this, 1, 2)); 177 assertTrue(a.compareAndSet(this, 2, -4)); 179 assertFalse(a.compareAndSet(this, -5, 7)); 181 assertTrue(a.compareAndSet(this, -4, 7)) [all...] |
AtomicMarkableReferenceTest.java | 75 * compareAndSet succeeds in changing values if equal to expected reference 85 assertTrue(ai.compareAndSet(one, two, false, false)); 89 assertTrue(ai.compareAndSet(two, m3, false, true)); 93 assertFalse(ai.compareAndSet(two, m3, true, true)); 99 * compareAndSet in one thread enables another waiting for reference value 106 while (!ai.compareAndSet(two, three, false, false)) 111 assertTrue(ai.compareAndSet(one, two, false, false)); 119 * compareAndSet in one thread enables another waiting for mark value 126 while (!ai.compareAndSet(one, one, true, false)) 131 assertTrue(ai.compareAndSet(one, one, false, true)) [all...] |
AtomicReferenceFieldUpdaterTest.java | 53 // assertTrue(a.compareAndSet(this, one, two)); 54 // assertTrue(a.compareAndSet(this, two, m4)); 56 // assertFalse(a.compareAndSet(this, m5, seven)); 58 // assertTrue(a.compareAndSet(this, m4, seven)); 70 // assertTrue(a.compareAndSet(obj, one, two)); 182 * compareAndSet succeeds in changing value if equal to expected else fails 188 assertTrue(a.compareAndSet(this, one, two)); 189 assertTrue(a.compareAndSet(this, two, m4)); 191 assertFalse(a.compareAndSet(this, m5, seven)); 193 assertTrue(a.compareAndSet(this, m4, seven)) [all...] |
AtomicReferenceTest.java | 68 * compareAndSet succeeds in changing value if equal to expected else fails 72 assertTrue(ai.compareAndSet(one, two)); 73 assertTrue(ai.compareAndSet(two, m4)); 75 assertFalse(ai.compareAndSet(m5, seven)); 77 assertTrue(ai.compareAndSet(m4, seven)); 82 * compareAndSet in one thread enables another waiting for value 89 while (!ai.compareAndSet(two, three)) 94 assertTrue(ai.compareAndSet(one, two));
|
/external/libbackup/src/com/google/android/libraries/backup/shadow/ |
BackupAgentHelperShadow.java | 97 assertTrue(backupDataMapToRestore.compareAndSet(null, backupDataMap)); 161 assertTrue(backupDataMapToBackup.compareAndSet(null, backupDataMapBuilder.build()));
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
AtomicDouble.java | 32 * values in methods such as {@link #compareAndSet} by comparing their 131 public final boolean compareAndSet(double expect, double update) { 132 return updater.compareAndSet(this, 146 * appropriate alternative to {@code compareAndSet}. 170 if (updater.compareAndSet(this, current, next)) { 188 if (updater.compareAndSet(this, current, next)) {
|
AtomicDoubleArray.java | 27 * values in methods such as {@link #compareAndSet} by comparing their 143 public final boolean compareAndSet(int i, double expect, double update) { 144 return longs.compareAndSet(i, 159 * appropriate alternative to {@code compareAndSet}. 185 if (longs.compareAndSet(i, current, next)) { 204 if (longs.compareAndSet(i, current, next)) {
|
/frameworks/layoutlib/bridge/src/android/view/ |
Choreographer_Delegate.java | 39 mInstance.compareAndSet(null, Choreographer.getInstance_Original());
|
/libcore/ojluni/src/main/java/java/util/stream/ |
AbstractShortCircuitTask.java | 152 sharedResult.compareAndSet(null, result); 165 sharedResult.compareAndSet(null, localResult);
|