Searched refs:nextc (Results 1 – 3 of 3) sorted by relevance
153 int nextc = c-1; in tryReleaseShared() local154 if (compareAndSetState(c, nextc)) in tryReleaseShared()155 return nextc == 0; in tryReleaseShared()
110 int nextc = c + acquires; in nonfairTryAcquire() local111 if (nextc < 0) // overflow in nonfairTryAcquire()113 setState(nextc); in nonfairTryAcquire()213 int nextc = c + acquires; in tryAcquire() local214 if (nextc < 0) in tryAcquire()216 setState(nextc); in tryAcquire()
344 int nextc = getState() - releases; in tryRelease() local345 boolean free = exclusiveCount(nextc) == 0; in tryRelease()348 setState(nextc); in tryRelease()406 int nextc = c - SHARED_UNIT; in tryReleaseShared() local407 if (compareAndSetState(c, nextc)) in tryReleaseShared()411 return nextc == 0; in tryReleaseShared()