Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java142 int nextc = c + acquires; in nonfairTryAcquire() local
143 if (nextc < 0) // overflow in nonfairTryAcquire()
145 setState(nextc); in nonfairTryAcquire()
251 int nextc = c + acquires; in tryAcquire() local
252 if (nextc < 0) in tryAcquire()
254 setState(nextc); in tryAcquire()
DReentrantReadWriteLock.java374 int nextc = getState() - releases; in tryRelease() local
375 boolean free = exclusiveCount(nextc) == 0; in tryRelease()
378 setState(nextc); in tryRelease()
436 int nextc = c - SHARED_UNIT; in tryReleaseShared() local
437 if (compareAndSetState(c, nextc)) in tryReleaseShared()
441 return nextc == 0; in tryReleaseShared()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCountDownLatch.java183 int nextc = c - 1; in tryReleaseShared() local
184 if (compareAndSetState(c, nextc)) in tryReleaseShared()
185 return nextc == 0; in tryReleaseShared()