/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicBoolean.java | 64 * @param expect the expected value 69 public final boolean compareAndSet(boolean expect, boolean update) { argument 70 int e = expect ? 1 : 0; 83 * @param expect the expected value 87 public boolean weakCompareAndSet(boolean expect, boolean update) { argument 88 int e = expect ? 1 : 0;
|
H A D | AtomicReference.java | 79 * @param expect the expected value 84 public final boolean compareAndSet(V expect, V update) { argument 85 return unsafe.compareAndSwapObject(this, valueOffset, expect, update); 96 * @param expect the expected value 100 public final boolean weakCompareAndSet(V expect, V update) { argument 101 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
|
H A D | AtomicIntegerArray.java | 132 * @param expect the expected value 137 public final boolean compareAndSet(int i, int expect, int update) { argument 138 return compareAndSetRaw(checkedByteOffset(i), expect, update); 141 private boolean compareAndSetRaw(long offset, int expect, int update) { argument 142 return unsafe.compareAndSwapInt(array, offset, expect, update); 154 * @param expect the expected value 158 public final boolean weakCompareAndSet(int i, int expect, int update) { argument 159 return compareAndSet(i, expect, update);
|
H A D | AtomicLongArray.java | 132 * @param expect the expected value 137 public final boolean compareAndSet(int i, long expect, long update) { argument 138 return compareAndSetRaw(checkedByteOffset(i), expect, update); 141 private boolean compareAndSetRaw(long offset, long expect, long update) { argument 142 return unsafe.compareAndSwapLong(array, offset, expect, update); 154 * @param expect the expected value 158 public final boolean weakCompareAndSet(int i, long expect, long update) { argument 159 return compareAndSet(i, expect, update);
|
H A D | AtomicInteger.java | 100 * @param expect the expected value 105 public final boolean compareAndSet(int expect, int update) { argument 106 return unsafe.compareAndSwapInt(this, valueOffset, expect, update); 117 * @param expect the expected value 121 public final boolean weakCompareAndSet(int expect, int update) { argument 122 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
|
H A D | AtomicLong.java | 114 * @param expect the expected value 119 public final boolean compareAndSet(long expect, long update) { argument 120 return unsafe.compareAndSwapLong(this, valueOffset, expect, update); 131 * @param expect the expected value 135 public final boolean weakCompareAndSet(long expect, long update) { argument 136 return unsafe.compareAndSwapLong(this, valueOffset, expect, update);
|
H A D | AtomicLongFieldUpdater.java | 66 * @param expect the expected value 72 public abstract boolean compareAndSet(T obj, long expect, long update); argument 86 * @param expect the expected value 92 public abstract boolean weakCompareAndSet(T obj, long expect, long update); argument 280 public boolean compareAndSet(T obj, long expect, long update) { argument 282 return unsafe.compareAndSwapLong(obj, offset, expect, update); 285 public boolean weakCompareAndSet(T obj, long expect, long update) { argument 287 return unsafe.compareAndSwapLong(obj, offset, expect, update); 365 public boolean compareAndSet(T obj, long expect, long update) { argument 369 if (v != expect) 376 weakCompareAndSet(T obj, long expect, long update) argument [all...] |
H A D | AtomicIntegerFieldUpdater.java | 63 * @param expect the expected value 69 public abstract boolean compareAndSet(T obj, int expect, int update); argument 83 * @param expect the expected value 89 public abstract boolean weakCompareAndSet(T obj, int expect, int update); argument 282 public boolean compareAndSet(T obj, int expect, int update) { argument 284 return unsafe.compareAndSwapInt(obj, offset, expect, update); 287 public boolean weakCompareAndSet(T obj, int expect, int update) { argument 289 return unsafe.compareAndSwapInt(obj, offset, expect, update);
|
H A D | AtomicReferenceArray.java | 147 * @param expect the expected value 152 public final boolean compareAndSet(int i, E expect, E update) { argument 153 return compareAndSetRaw(checkedByteOffset(i), expect, update); 156 private boolean compareAndSetRaw(long offset, E expect, E update) { argument 157 return unsafe.compareAndSwapObject(array, offset, expect, update); 169 * @param expect the expected value 173 public final boolean weakCompareAndSet(int i, E expect, E update) { argument 174 return compareAndSet(i, expect, update);
|
H A D | AtomicReferenceFieldUpdater.java | 30 * boolean compareAndSetLeft(Node expect, Node update) { 31 * return leftUpdater.compareAndSet(this, expect, update); 83 * @param expect the expected value 87 public abstract boolean compareAndSet(T obj, V expect, V update); argument 101 * @param expect the expected value 105 public abstract boolean weakCompareAndSet(T obj, V expect, V update); argument 224 public boolean compareAndSet(T obj, V expect, V update) { argument 229 return unsafe.compareAndSwapObject(obj, offset, expect, update); 232 public boolean weakCompareAndSet(T obj, V expect, V update) { argument 238 return unsafe.compareAndSwapObject(obj, offset, expect, updat [all...] |
/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/ |
H A D | GenericSignatureParser.java | 241 expect('>'); 255 expect(':'); 291 expect('L'); 318 expect(';'); 334 expect('>'); 366 expect('T'); 368 expect(';'); 402 expect('('); 406 expect(')'); 455 void expect(cha method in class:GenericSignatureParser [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ThreadPoolExecutor.java | 379 private boolean compareAndIncrementWorkerCount(int expect) { argument 380 return ctl.compareAndSet(expect, expect + 1); 386 private boolean compareAndDecrementWorkerCount(int expect) { argument 387 return ctl.compareAndSet(expect, expect - 1);
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
H A D | AbstractQueuedLongSynchronizer.java | 306 * @param expect the expected value 311 protected final boolean compareAndSetState(long expect, long update) { argument 313 return unsafe.compareAndSwapLong(this, stateOffset, expect, update); 2056 private final boolean compareAndSetTail(Node expect, Node update) { argument 2057 return unsafe.compareAndSwapObject(this, tailOffset, expect, update); 2064 int expect, 2067 expect, update); 2074 Node expect, 2076 return unsafe.compareAndSwapObject(node, nextOffset, expect, update); 2063 compareAndSetWaitStatus(Node node, int expect, int update) argument 2073 compareAndSetNext(Node node, Node expect, Node update) argument
|
H A D | AbstractQueuedSynchronizer.java | 535 * @param expect the expected value 540 protected final boolean compareAndSetState(int expect, int update) { argument 542 return unsafe.compareAndSwapInt(this, stateOffset, expect, update); 2284 private final boolean compareAndSetTail(Node expect, Node update) { argument 2285 return unsafe.compareAndSwapObject(this, tailOffset, expect, update); 2292 int expect, 2295 expect, update); 2302 Node expect, 2304 return unsafe.compareAndSwapObject(node, nextOffset, expect, update); 2291 compareAndSetWaitStatus(Node node, int expect, int update) argument 2301 compareAndSetNext(Node node, Node expect, Node update) argument
|