Searched refs:acquires (Results 1 – 6 of 6) sorted by relevance
100 final boolean nonfairTryAcquire(int acquires) { in nonfairTryAcquire() argument104 if (compareAndSetState(0, acquires)) { in nonfairTryAcquire()110 int nextc = c + acquires; in nonfairTryAcquire()183 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument184 return nonfairTryAcquire(acquires); in tryAcquire()202 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument207 compareAndSetState(0, acquires)) { in tryAcquire()213 int nextc = c + acquires; in tryAcquire()
352 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument371 if (w + exclusiveCount(acquires) > MAX_COUNT) in tryAcquire()374 setState(c + acquires); in tryAcquire()378 !compareAndSetState(c, c + acquires)) in tryAcquire()
148 final int nonfairTryAcquireShared(int acquires) { in nonfairTryAcquireShared() argument151 int remaining = available - acquires; in nonfairTryAcquireShared()199 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument200 return nonfairTryAcquireShared(acquires); in tryAcquireShared()214 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument219 int remaining = available - acquires; in tryAcquireShared()
143 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
35 public boolean tryAcquire(long acquires) { in tryAcquire() argument36 assertEquals(LOCKED, acquires); in tryAcquire()
38 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument39 assertEquals(LOCKED, acquires); in tryAcquire()