Home
last modified time | relevance | path

Searched refs:compareAndSetState (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java136 if (compareAndSetState(0, acquires)) { in nonfairTryAcquire()
213 if (compareAndSetState(0, 1)) in lock()
245 compareAndSetState(0, acquires)) { in tryAcquire()
DReentrantReadWriteLock.java408 !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()
DAbstractQueuedLongSynchronizer.java130 protected final boolean compareAndSetState(long expect, long update) { in compareAndSetState() method in AbstractQueuedLongSynchronizer
/libcore/ojluni/src/main/java/java/util/concurrent/
DCountDownLatch.java184 if (compareAndSetState(c, nextc)) in tryReleaseShared()
DThreadPoolExecutor.java654 if (compareAndSetState(0, 1)) { in tryAcquire()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAbstractQueuedLongSynchronizerTest.java76 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()
DAbstractQueuedSynchronizerTest.java79 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java56 return compareAndSetState(UNLOCKED, LOCKED); in tryAcquire()