Searched refs:acquires (Results 1 – 7 of 7) sorted by relevance
132 final boolean nonfairTryAcquire(int acquires) { in nonfairTryAcquire() argument136 if (compareAndSetState(0, acquires)) { in nonfairTryAcquire()142 int nextc = c + acquires; in nonfairTryAcquire()219 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument220 return nonfairTryAcquire(acquires); in tryAcquire()240 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument245 compareAndSetState(0, acquires)) { in tryAcquire()251 int nextc = c + acquires; in tryAcquire()
382 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument401 if (w + exclusiveCount(acquires) > MAX_COUNT) in tryAcquire()404 setState(c + acquires); in tryAcquire()408 !compareAndSetState(c, c + acquires)) in tryAcquire()
183 final int nonfairTryAcquireShared(int acquires) { in nonfairTryAcquireShared() argument186 int remaining = available - acquires; in nonfairTryAcquireShared()234 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument235 return nonfairTryAcquireShared(acquires); in tryAcquireShared()249 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument254 int remaining = available - acquires; in tryAcquireShared()
173 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
149 protected boolean tryAcquire(int acquires) { in tryAcquire() argument167 protected boolean tryAcquire(int acquires) { in tryAcquire() argument183 final boolean nonfairTryAcquire(int acquires) { in nonfairTryAcquire() argument
54 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument55 assertEquals(LOCKED, acquires); in tryAcquire()
51 public boolean tryAcquire(long acquires) { in tryAcquire() argument52 assertEquals(LOCKED, acquires); in tryAcquire()