Searched refs:nextc (Results 1 – 3 of 3) sorted by relevance
142 int nextc = c + acquires; in nonfairTryAcquire() local143 if (nextc < 0) // overflow in nonfairTryAcquire()145 setState(nextc); in nonfairTryAcquire()251 int nextc = c + acquires; in tryAcquire() local252 if (nextc < 0) in tryAcquire()254 setState(nextc); in tryAcquire()
374 int nextc = getState() - releases; in tryRelease() local375 boolean free = exclusiveCount(nextc) == 0; in tryRelease()378 setState(nextc); in tryRelease()436 int nextc = c - SHARED_UNIT; in tryReleaseShared() local437 if (compareAndSetState(c, nextc)) in tryReleaseShared()441 return nextc == 0; in tryReleaseShared()
183 int nextc = c - 1; in tryReleaseShared() local184 if (compareAndSetState(c, nextc)) in tryReleaseShared()185 return nextc == 0; in tryReleaseShared()