/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/ |
H A D | Lock.java | 97 * #tryLock()}), an attempt to acquire the lock that can be 99 * the lock that can timeout ({@link #tryLock(long, TimeUnit)}). 244 * if (lock.tryLock()) { 260 boolean tryLock(); method in interface:Lock 320 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; method in interface:Lock
|
H A D | ReentrantLock.java | 68 * Also note that the untimed {@link #tryLock() tryLock} method does not 129 * Performs non-fair tryLock. tryAcquire is 350 * fair ordering policy, a call to {@code tryLock()} <em>will</em> 356 * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) } 369 public boolean tryLock() { method in class:ReentrantLock 382 * are waiting for the lock. This is in contrast to the {@link #tryLock()} 383 * method. If you want a timed {@code tryLock} that does permit barging on 386 * <pre>if (lock.tryLock() || loc 443 public boolean tryLock(long timeout, TimeUnit unit) method in class:ReentrantLock [all...] |
H A D | ReentrantReadWriteLock.java | 82 * {@link ReadLock#tryLock()} and {@link WriteLock#tryLock()} methods 554 * Performs tryLock for write, enabling barging in both modes. 575 * Performs tryLock for read, enabling barging in both modes. 786 * fair ordering policy, a call to {@code tryLock()} 792 * for this lock, then use {@link #tryLock(long, TimeUnit) 793 * tryLock(0, TimeUnit.SECONDS) } which is almost equivalent 802 public boolean tryLock() { method in class:ReentrantReadWriteLock.ReadLock 817 * lock. This is in contrast to the {@link #tryLock()} 818 * method. If you want a timed {@code tryLock} tha 871 public boolean tryLock(long timeout, TimeUnit unit) method in class:ReentrantReadWriteLock.ReadLock 1032 public boolean tryLock( ) { method in class:ReentrantReadWriteLock.WriteLock 1113 public boolean tryLock(long timeout, TimeUnit unit) method in class:ReentrantReadWriteLock.WriteLock [all...] |
/openjdk7/jdk/src/share/classes/java/nio/channels/ |
H A D | AsynchronousFileChannel.java | 599 * @see #tryLock() 601 public abstract FileLock tryLock(long position, long size, boolean shared) method in class:AsynchronousFileChannel 607 * <p> An invocation of this method of the form {@code ch.tryLock()} 611 * ch.{@link #tryLock(long,long,boolean) tryLock}(0L, Long.MAX_VALUE, false) </pre> 632 * @see #tryLock(long,long,boolean) 634 public final FileLock tryLock() throws IOException { method in class:AsynchronousFileChannel 635 return tryLock(0L, Long.MAX_VALUE, false);
|
H A D | FileChannel.java | 1007 * @see #tryLock() 1008 * @see #tryLock(long,long,boolean) 1048 * @see #tryLock() 1049 * @see #tryLock(long,long,boolean) 1073 * {@link #tryLock()} method simply locks a region of size {@link 1119 * @see #tryLock() 1121 public abstract FileLock tryLock(long position, long size, boolean shared) method in class:FileChannel 1127 * <p> An invocation of this method of the form <tt>fc.tryLock()</tt> 1131 * fc.{@link #tryLock(long,long,boolean) tryLock}( 1153 public final FileLock tryLock() throws IOException { method in class:FileChannel [all...] |
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/ |
H A D | RenderQueue.java | 120 public final boolean tryLock() { method in class:RenderQueue
|
/openjdk7/jdk/test/java/lang/management/ManagementFactory/ |
H A D | ThreadMXBeanProxy.java | 225 public boolean tryLock() { return sync.tryAcquire(1); } method in class:ThreadMXBeanProxy.Mutex 233 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { method in class:ThreadMXBeanProxy.Mutex
|
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/ |
H A D | MyOwnSynchronizer.java | 139 public boolean tryLock() { return sync.tryAcquire(1); } method in class:MyOwnSynchronizer.Mutex 147 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { method in class:MyOwnSynchronizer.Mutex
|
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/ |
H A D | FlakyMutex.java | 78 try { check(! m.tryLock()); } 81 try { check(! m.tryLock(1, TimeUnit.MICROSECONDS)); } 123 public boolean tryLock() { return sync.tryAcquire(1); } method in class:FlakyMutex 127 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { method in class:FlakyMutex
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | SimpleAsynchronousFileChannelImpl.java | 244 public FileLock tryLock(long position, long size, boolean shared) method in class:SimpleAsynchronousFileChannelImpl
|
H A D | FileChannelImpl.java | 1046 public FileLock tryLock(long position, long size, boolean shared) method in class:FileChannelImpl
|
/openjdk7/jdk/src/windows/classes/sun/nio/ch/ |
H A D | WindowsAsynchronousFileChannelImpl.java | 342 public FileLock tryLock(long position, long size, boolean shared) method in class:WindowsAsynchronousFileChannelImpl
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | ThreadPoolExecutor.java | 642 public boolean tryLock() { return tryAcquire(1); } method in class:ThreadPoolExecutor.Worker 785 if (!t.isInterrupted() && w.tryLock()) {
|