Searched refs:tryAcquire (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
H A DSemaphore.java103 * Also note that the untimed {@link #tryAcquire() tryAcquire} methods do not
323 * fair ordering policy, a call to {@code tryAcquire()} <em>will</em>
329 * {@link #tryAcquire(long, TimeUnit) tryAcquire(0, TimeUnit.SECONDS) }
335 public boolean tryAcquire() { method in class:Semaphore
380 public boolean tryAcquire(long timeout, TimeUnit unit) method in class:Semaphore
484 * policy, a call to {@code tryAcquire} <em>will</em>
489 * honor the fairness setting, then use {@link #tryAcquire(int,
490 * long, TimeUnit) tryAcquire(permit
498 public boolean tryAcquire(int permits) { method in class:Semaphore
553 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) method in class:Semaphore
[all...]
H A DThreadPoolExecutor.java585 protected boolean tryAcquire(int unused) { method in class:ThreadPoolExecutor.Worker
600 public boolean tryLock() { return tryAcquire(1); }
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DReentrantLock.java98 * Performs non-fair tryLock. tryAcquire is
186 protected final boolean tryAcquire(int acquires) { method in class:ReentrantLock.NonfairSync
202 * Fair version of tryAcquire. Don't grant access unless
205 protected final boolean tryAcquire(int acquires) { method in class:ReentrantLock.FairSync
H A DAbstractQueuedLongSynchronizer.java590 * cancel if tryAcquire throws exception) and other control, at
608 if (p == head && tryAcquire(arg)) {
635 if (p == head && tryAcquire(arg)) {
666 if (p == head && tryAcquire(arg)) {
821 protected boolean tryAcquire(long arg) { method in class:AbstractQueuedLongSynchronizer
933 * by invoking at least once {@link #tryAcquire},
936 * #tryAcquire} until success. This method can be used
940 * {@link #tryAcquire} but is otherwise uninterpreted and
944 if (!tryAcquire(arg) &&
952 * at least once {@link #tryAcquire}, returnin
[all...]
H A DAbstractQueuedSynchronizer.java86 * <li> {@link #tryAcquire}
112 * while (!tryAcquire(arg)) {
127 * define <tt>tryAcquire</tt> and/or <tt>tryAcquireShared</tt> to
130 * <tt>tryAcquire</tt> to immediately return <tt>false</tt> if {@link
147 * invocations of <tt>tryAcquire</tt> interspersed with other
186 * public boolean tryAcquire(int acquires) {
219 * public boolean tryLock() { return sync.tryAcquire(1); }
819 * cancel if tryAcquire throws exception) and other control, at
837 if (p == head && tryAcquire(arg)) {
864 if (p == head && tryAcquire(ar
1050 protected boolean tryAcquire(int arg) { method in class:AbstractQueuedSynchronizer
[all...]
H A DReentrantReadWriteLock.java336 * Note that tryRelease and tryAcquire can be called by
339 * condition wait and re-established in tryAcquire.
353 protected final boolean tryAcquire(int acquires) { method in class:ReentrantReadWriteLock.Sync
525 * This is identical in effect to tryAcquire except for lack

Completed in 118 milliseconds