/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | ReentrantLock.java | 132 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()
|
D | ReentrantReadWriteLock.java | 382 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/ |
D | Semaphore.java | 183 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()
|
D | CountDownLatch.java | 173 protected int tryAcquireShared(int acquires) { in tryAcquireShared() argument
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | AbstractQueuedSynchronizerTest.java | 39 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()
|
D | AbstractQueuedLongSynchronizerTest.java | 39 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/ |
D | ReentrantLock.java | 149 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/ |
D | AbstractQueuedLongSynchronizerTest.java | 51 public boolean tryAcquire(long acquires) { in tryAcquire() argument 52 assertEquals(LOCKED, acquires); in tryAcquire()
|
D | AbstractQueuedSynchronizerTest.java | 54 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument 55 assertEquals(LOCKED, acquires); in tryAcquire()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | AbstractQueuedLongSynchronizerTest.java | 74 public boolean tryAcquire(long acquires) { in tryAcquire() argument 75 assertEquals(LOCKED, acquires); in tryAcquire()
|
D | AbstractQueuedSynchronizerTest.java | 77 @Override public boolean tryAcquire(int acquires) { in tryAcquire() argument 78 assertEquals(LOCKED, acquires); in tryAcquire()
|