HomeSort by relevance Sort by last modified time
    Searched defs:tryLock (Results 1 - 25 of 143) sorted by null

1 2 3 4 5 6

  /external/deqp/framework/delibs/decpp/
deMutex.hpp 45 bool tryLock (void) throw();
114 inline bool Mutex::tryLock (void) throw()
  /libcore/ojluni/src/main/java/java/util/concurrent/locks/
Lock.java 98 * #tryLock()}), an attempt to acquire the lock that can be
100 * the lock that can timeout ({@link #tryLock(long, TimeUnit)}).
247 * if (lock.tryLock()) {
263 boolean tryLock();
323 boolean tryLock(long time, TimeUnit unit) throws InterruptedException;
ReentrantLock.java 68 * Also note that the untimed {@link #tryLock()} method does not
127 * Performs non-fair tryLock. tryAcquire is implemented in
128 * subclasses, but both need nonfair try for trylock method.
346 * fair ordering policy, a call to {@code tryLock()} <em>will</em>
352 * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) }
365 public boolean tryLock() {
378 * are waiting for the lock. This is in contrast to the {@link #tryLock()}
379 * method. If you want a timed {@code tryLock} that does permit barging on
383 * if (lock.tryLock() ||
    [all...]
ReentrantReadWriteLock.java 83 * {@link ReadLock#tryLock()} and {@link WriteLock#tryLock()} methods
553 * Performs tryLock for write, enabling barging in both modes.
574 * Performs tryLock for read, enabling barging in both modes.
784 * fair ordering policy, a call to {@code tryLock()}
790 * for this lock, then use {@link #tryLock(long, TimeUnit)
791 * tryLock(0, TimeUnit.SECONDS) } which is almost equivalent
800 public boolean tryLock() {
815 * lock. This is in contrast to the {@link #tryLock()}
816 * method. If you want a timed {@code tryLock} that doe
    [all...]
StampedLock.java 231 * These rules apply to threads actually queued. All tryLock forms
370 * for method {@link Lock#tryLock(long,TimeUnit)}.
451 * for method {@link Lock#tryLock(long,TimeUnit)}.
    [all...]
  /packages/apps/Nfc/nci/jni/
Mutex.cpp 108 ** Function: tryLock
115 bool Mutex::tryLock ()
120 ALOGE("Mutex::tryLock: error=0x%X", res);
  /system/nfc/halimpl/bcm2079x/adaptation/
Mutex.cpp 98 ** Function: tryLock
105 bool Mutex::tryLock() {
108 ALOGE("Mutex::tryLock: error=0x%X", res);
  /hardware/broadcom/wlan/bcmdhd/wifi_hal/
sync.h 18 int tryLock() {
  /hardware/qcom/wlan/qcwcn/wifi_hal/
sync.h 33 int tryLock() {
  /libcore/ojluni/src/main/java/java/nio/channels/
AsynchronousFileChannel.java 604 * @see #tryLock()
606 public abstract FileLock tryLock(long position, long size, boolean shared)
612 * <p> An invocation of this method of the form {@code ch.tryLock()}
616 * ch.{@link #tryLock(long,long,boolean) tryLock}(0L, Long.MAX_VALUE, false) </pre>
637 * @see #tryLock(long,long,boolean)
639 public final FileLock tryLock() throws IOException {
640 return tryLock(0L, Long.MAX_VALUE, false);
    [all...]
FileChannel.java     [all...]
  /system/core/libutils/include/utils/
Mutex.h 64 status_t tryLock();
137 inline status_t Mutex::tryLock() {
  /libcore/ojluni/src/main/java/sun/nio/ch/
SimpleAsynchronousFileChannelImpl.java 243 public FileLock tryLock(long position, long size, boolean shared)
FileChannelImpl.java     [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
CycleDetectingLockFactoryTest.java 473 assertFalse(lockA.tryLock());
476 assertTrue(lockA.tryLock());
484 assertFalse(writeLockA.tryLock());
485 assertFalse(readLockA.tryLock());
488 assertTrue(writeLockA.tryLock());
489 assertTrue(readLockA.tryLock());
497 assertFalse(writeLockA.tryLock());
498 assertTrue(readLockA.tryLock());
502 assertTrue(writeLockA.tryLock());
503 assertTrue(readLockA.tryLock());
    [all...]
  /frameworks/av/services/radio/
RadioService.cpp 149 static bool tryLock(Mutex& mutex)
153 if (mutex.tryLock() == NO_ERROR) {
168 bool locked = tryLock(mServiceLock);
  /frameworks/av/services/soundtrigger/
SoundTriggerHwService.cpp 154 static bool tryLock(Mutex& mutex)
158 if (mutex.tryLock() == NO_ERROR) {
173 bool locked = tryLock(mServiceLock);
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
FileChannelLockingTest.java 159 readOnlyChannel.tryLock();
169 readOnlyChannel.tryLock(0, 99, false);
177 readOnlyChannel.tryLock(-99, 0, true);
184 FileLock tmpLock = readOnlyChannel.tryLock(0, 10, true);
189 FileLock lock = readOnlyChannel.tryLock(10, 788, true);
194 readOnlyChannel.tryLock(1, 23, true);
201 FileLock adjacentLock = readOnlyChannel.tryLock(1, 3, true);
FileChannelTest.java 881 * @tests java.nio.channels.FileChannel#tryLock()
886 readOnlyFileChannel.tryLock();
892 writeOnlyFileChannel.tryLock();
898 readWriteFileChannel.tryLock();
904 * @tests java.nio.channels.FileChannel#tryLock()
908 readOnlyFileChannel.tryLock();
914 * @tests java.nio.channels.FileChannel#tryLock()
917 fileLock = writeOnlyFileChannel.tryLock();
926 * @tests java.nio.channels.FileChannel#tryLock()
929 fileLock = writeOnlyFileChannel.tryLock();
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
CycleDetectingLockFactory.java 54 * {@code lockInterruptibly()}, or {@code tryLock()} methods will result in the
184 * {@code tryLock()}. Although {@code tryLock()} technically recovers from
836 public boolean tryLock() {
839 return super.tryLock();
846 public boolean tryLock(long timeout, TimeUnit unit)
850 return super.tryLock(timeout, unit);
    [all...]
  /frameworks/av/services/audiopolicy/service/
AudioPolicyService.cpp 291 static bool tryLock(Mutex& mutex)
295 if (mutex.tryLock() == NO_ERROR) {
326 bool locked = tryLock(mLock);
609 bool locked = tryLock(mLock);
    [all...]
  /libcore/jsr166-tests/src/test/java/jsr166/
StampedLockTest.java 845 assertFalse(lock.tryLock());
847 assertTrue(lock.tryLock());
858 assertTrue(lock.tryLock());
868 assertFalse(lock.tryLock());
870 assertTrue(lock.tryLock());
881 assertTrue(lock.tryLock());
  /libcore/luni/src/test/java/libcore/java/nio/channels/
OldFileChannelTest.java 209 writeOnlyFileChannel.tryLock(0, -1, false);
216 writeOnlyFileChannel.tryLock(-1, 0, false);
223 readWriteFileChannel.tryLock(-1, -1, false);
230 readWriteFileChannel.tryLock(Long.MAX_VALUE, 1, false);
239 FileLock lock = readWriteFileChannel.tryLock(tooBig, 1, false);
243 lock = readWriteFileChannel.tryLock(0, tooBig, false);
249 FileLock lockOne = readWriteFileChannel.tryLock(0, 10, false);
250 FileLock lockTwo = readWriteFileChannel.tryLock(10, 20, false);
254 lockOne = readWriteFileChannel.tryLock(0, 10, false);
    [all...]
  /libcore/ojluni/src/main/java/java/util/concurrent/
ThreadPoolExecutor.java 663 public boolean tryLock() { return tryAcquire(1); }
    [all...]
  /frameworks/av/services/camera/libcameraservice/
CameraService.cpp     [all...]

Completed in 1171 milliseconds

1 2 3 4 5 6