Home
last modified time | relevance | path

Searched refs:nextc (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DCountDownLatch.java153 int nextc = c-1; in tryReleaseShared() local
154 if (compareAndSetState(c, nextc)) in tryReleaseShared()
155 return nextc == 0; in tryReleaseShared()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java110 int nextc = c + acquires; in nonfairTryAcquire() local
111 if (nextc < 0) // overflow in nonfairTryAcquire()
113 setState(nextc); in nonfairTryAcquire()
213 int nextc = c + acquires; in tryAcquire() local
214 if (nextc < 0) in tryAcquire()
216 setState(nextc); in tryAcquire()
DReentrantReadWriteLock.java344 int nextc = getState() - releases; in tryRelease() local
345 boolean free = exclusiveCount(nextc) == 0; in tryRelease()
348 setState(nextc); in tryRelease()
406 int nextc = c - SHARED_UNIT; in tryReleaseShared() local
407 if (compareAndSetState(c, nextc)) in tryReleaseShared()
411 return nextc == 0; in tryReleaseShared()