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

/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DSemaphore.java182 final int nonfairTryAcquireShared(int acquires) { argument
185 int remaining = available - acquires;
233 protected int tryAcquireShared(int acquires) { argument
234 return nonfairTryAcquireShared(acquires);
248 protected int tryAcquireShared(int acquires) { argument
253 int remaining = available - acquires;
267 * must occur before any acquires will be granted.
279 * must occur before any acquires will be granted.
H A DCountDownLatch.java177 protected int tryAcquireShared(int acquires) { argument
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DReentrantLock.java133 final boolean nonfairTryAcquire(int acquires) { argument
137 if (compareAndSetState(0, acquires)) {
143 int nextc = c + acquires;
217 protected final boolean tryAcquire(int acquires) { argument
218 return nonfairTryAcquire(acquires);
236 protected final boolean tryAcquire(int acquires) { argument
241 compareAndSetState(0, acquires)) {
247 int nextc = c + acquires;
H A DReentrantReadWriteLock.java383 protected final boolean tryAcquire(int acquires) { argument
402 if (w + exclusiveCount(acquires) > MAX_COUNT)
405 setState(c + acquires);
409 !compareAndSetState(c, c + acquires))
460 * acquires, which is postponed to full version
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DMyOwnSynchronizer.java55 // wait until myThread acquires mutex
106 public boolean tryAcquire(int acquires) { argument
107 assert acquires == 1; // Otherwise unused
/openjdk7/jdk/test/java/lang/management/ManagementFactory/
H A DThreadMXBeanProxy.java63 // wait until myThread acquires mutex and lock owner is set.
188 public boolean tryAcquire(int acquires) { argument
189 assert acquires == 1; // Otherwise unused
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/
H A DFlakyMutex.java97 public boolean tryAcquire(long acquires) { argument

Completed in 934 milliseconds