Searched refs:compareAndSetState (Results 1 – 8 of 8) sorted by relevance
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | ReentrantLock.java | 136 if (compareAndSetState(0, acquires)) { in nonfairTryAcquire() 213 if (compareAndSetState(0, 1)) in lock() 245 compareAndSetState(0, acquires)) { in tryAcquire()
|
D | ReentrantReadWriteLock.java | 408 !compareAndSetState(c, c + acquires)) in tryAcquire() 437 if (compareAndSetState(c, nextc)) in tryReleaseShared() 474 compareAndSetState(c, c + SHARED_UNIT)) { in tryAcquireShared() 531 if (compareAndSetState(c, c + SHARED_UNIT)) { in fullTryAcquireShared() 567 if (!compareAndSetState(c, c + 1)) in tryWriteLock() 588 if (compareAndSetState(c, c + SHARED_UNIT)) { in tryReadLock()
|
D | AbstractQueuedLongSynchronizer.java | 130 protected final boolean compareAndSetState(long expect, long update) { in compareAndSetState() method in AbstractQueuedLongSynchronizer
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CountDownLatch.java | 184 if (compareAndSetState(c, nextc)) in tryReleaseShared()
|
D | ThreadPoolExecutor.java | 654 if (compareAndSetState(0, 1)) { in tryAcquire()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | AbstractQueuedLongSynchronizerTest.java | 76 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()
|
D | AbstractQueuedSynchronizerTest.java | 79 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractQueuedSynchronizerTest.java | 56 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()
|