Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java132 final boolean nonfairTryAcquire(int acquires) { in nonfairTryAcquire() argument
136 if (compareAndSetState(0, acquires)) { in nonfairTryAcquire()
142 int nextc = c + acquires; in nonfairTryAcquire()
219 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument
220 return nonfairTryAcquire(acquires); in tryAcquire()
240 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument
245 compareAndSetState(0, acquires)) { in tryAcquire()
251 int nextc = c + acquires; in tryAcquire()
DReentrantReadWriteLock.java382 protected final boolean tryAcquire(int acquires) { in tryAcquire() argument
401 if (w + exclusiveCount(acquires) > MAX_COUNT) in tryAcquire()
404 setState(c + acquires); in tryAcquire()
408 !compareAndSetState(c, c + acquires)) in tryAcquire()
/libcore/ojluni/src/main/java/java/util/concurrent/
DSemaphore.java183 final int nonfairTryAcquireShared(int acquires) { in nonfairTryAcquireShared() argument
186 int remaining = available - acquires; in nonfairTryAcquireShared()
234 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
235 return nonfairTryAcquireShared(acquires); in tryAcquireShared()
249 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
254 int remaining = available - acquires; in tryAcquireShared()
DCountDownLatch.java173 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java149 protected boolean tryAcquire(int acquires) { in tryAcquire() argument
167 protected boolean tryAcquire(int acquires) { in tryAcquire() argument
183 final boolean nonfairTryAcquire(int acquires) { in nonfairTryAcquire() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java54 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument
55 assertEquals(LOCKED, acquires); in tryAcquire()
DAbstractQueuedLongSynchronizerTest.java51 public boolean tryAcquire(long acquires) { in tryAcquire() argument
52 assertEquals(LOCKED, acquires); in tryAcquire()