Home
last modified time | relevance | path

Searched refs:acquires (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java100 final boolean nonfairTryAcquire(int acquires) { in nonfairTryAcquire() argument
104 if (compareAndSetState(0, acquires)) { in nonfairTryAcquire()
110 int nextc = c + acquires; in nonfairTryAcquire()
183 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument
184 return nonfairTryAcquire(acquires); in tryAcquire()
202 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument
207 compareAndSetState(0, acquires)) { in tryAcquire()
213 int nextc = c + acquires; in tryAcquire()
DReentrantReadWriteLock.java352 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument
371 if (w + exclusiveCount(acquires) > MAX_COUNT) in tryAcquire()
374 setState(c + acquires); in tryAcquire()
378 !compareAndSetState(c, c + acquires)) in tryAcquire()
/libcore/luni/src/main/java/java/util/concurrent/
DSemaphore.java148 final int nonfairTryAcquireShared(int acquires) { in nonfairTryAcquireShared() argument
151 int remaining = available - acquires; in nonfairTryAcquireShared()
199 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
200 return nonfairTryAcquireShared(acquires); in tryAcquireShared()
214 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
219 int remaining = available - acquires; in tryAcquireShared()
DCountDownLatch.java143 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedLongSynchronizerTest.java35 public boolean tryAcquire(long acquires) { in tryAcquire() argument
36 assertEquals(LOCKED, acquires); in tryAcquire()
DAbstractQueuedSynchronizerTest.java38 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument
39 assertEquals(LOCKED, acquires); in tryAcquire()