Home
last modified time | relevance | path

Searched refs:acquires (Results 1 – 11 of 11) 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/luni/src/test/java/libcore/java/util/concurrent/
DAbstractQueuedSynchronizerTest.java39 public boolean tryAcquire(int acquires) { in tryAcquire() argument
40 return super.tryAcquire(acquires); in tryAcquire()
44 public int tryAcquireShared(int acquires) { in tryAcquireShared() argument
45 return super.tryAcquireShared(acquires); in tryAcquireShared()
DAbstractQueuedLongSynchronizerTest.java39 public boolean tryAcquire(long acquires) { in tryAcquire() argument
40 return super.tryAcquire(acquires); in tryAcquire()
44 public long tryAcquireShared(long acquires) { in tryAcquireShared() argument
45 return super.tryAcquireShared(acquires); in tryAcquireShared()
/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/
DAbstractQueuedLongSynchronizerTest.java51 public boolean tryAcquire(long acquires) { in tryAcquire() argument
52 assertEquals(LOCKED, acquires); in tryAcquire()
DAbstractQueuedSynchronizerTest.java54 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument
55 assertEquals(LOCKED, acquires); in tryAcquire()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAbstractQueuedLongSynchronizerTest.java74 public boolean tryAcquire(long acquires) { in tryAcquire() argument
75 assertEquals(LOCKED, acquires); in tryAcquire()
DAbstractQueuedSynchronizerTest.java77 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument
78 assertEquals(LOCKED, acquires); in tryAcquire()