Searched defs:tryAcquire (Results 1 - 9 of 9) sorted by relevance
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | Semaphore.java | 135 * Also note that the untimed {@link #tryAcquire() tryAcquire} methods do not 355 * fair ordering policy, a call to {@code tryAcquire()} <em>will</em> 361 * {@link #tryAcquire(long, TimeUnit) tryAcquire(0, TimeUnit.SECONDS) } 367 public boolean tryAcquire() { method in class:Semaphore 412 public boolean tryAcquire(long timeout, TimeUnit unit) method in class:Semaphore 516 * policy, a call to {@code tryAcquire} <em>will</em> 521 * honor the fairness setting, then use {@link #tryAcquire(int, 522 * long, TimeUnit) tryAcquire(permit 530 public boolean tryAcquire(int permits) { method in class:Semaphore 585 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) method in class:Semaphore [all...] |
H A D | ThreadPoolExecutor.java | 627 protected boolean tryAcquire(int unused) { method in class:ThreadPoolExecutor.Worker 642 public boolean tryLock() { return tryAcquire(1); }
|
/openjdk7/jdk/test/java/lang/management/ManagementFactory/ |
H A D | ThreadMXBeanProxy.java | 188 public boolean tryAcquire(int acquires) { method in class:ThreadMXBeanProxy.Mutex.Sync 225 public boolean tryLock() { return sync.tryAcquire(1); }
|
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/ |
H A D | MyOwnSynchronizer.java | 106 public boolean tryAcquire(int acquires) { method in class:MyOwnSynchronizer.Mutex.Sync 139 public boolean tryLock() { return sync.tryAcquire(1); }
|
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/ |
H A D | FlakyMutex.java | 27 * @summary Test resilience to tryAcquire methods that throw 37 * tryAcquire method that randomly throws various Throwable 97 public boolean tryAcquire(long acquires) { method in class:FlakyMutex.FlakySync 123 public boolean tryLock() { return sync.tryAcquire(1); }
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/ |
H A D | ReentrantLock.java | 129 * Performs non-fair tryLock. tryAcquire is 217 protected final boolean tryAcquire(int acquires) { method in class:ReentrantLock.NonfairSync 233 * Fair version of tryAcquire. Don't grant access unless 236 protected final boolean tryAcquire(int acquires) { method in class:ReentrantLock.FairSync
|
H A D | ReentrantReadWriteLock.java | 366 * Note that tryRelease and tryAcquire can be called by 369 * condition wait and re-established in tryAcquire. 383 protected final boolean tryAcquire(int acquires) { method in class:ReentrantReadWriteLock.Sync 555 * This is identical in effect to tryAcquire except for lack
|
H A D | AbstractQueuedLongSynchronizer.java | 620 * cancel if tryAcquire throws exception) and other control, at 638 if (p == head && tryAcquire(arg)) { 665 if (p == head && tryAcquire(arg)) { 696 if (p == head && tryAcquire(arg)) { 851 protected boolean tryAcquire(long arg) { method in class:AbstractQueuedLongSynchronizer 963 * by invoking at least once {@link #tryAcquire}, 966 * #tryAcquire} until success. This method can be used 970 * {@link #tryAcquire} but is otherwise uninterpreted and 974 if (!tryAcquire(arg) && 982 * at least once {@link #tryAcquire}, returnin [all...] |
H A D | AbstractQueuedSynchronizer.java | 112 * <li> {@link #tryAcquire} 138 * while (!tryAcquire(arg)) { 153 * define <tt>tryAcquire</tt> and/or <tt>tryAcquireShared</tt> to 156 * In particular, most fair synchronizers can define <tt>tryAcquire</tt> 169 * invocations of <tt>tryAcquire</tt> interspersed with other 208 * public boolean tryAcquire(int acquires) { 241 * public boolean tryLock() { return sync.tryAcquire(1); } 843 * cancel if tryAcquire throws exception) and other control, at 861 if (p == head && tryAcquire(arg)) { 888 if (p == head && tryAcquire(ar 1074 protected boolean tryAcquire(int arg) { method in class:AbstractQueuedSynchronizer [all...] |
Completed in 68 milliseconds