HomeSort by relevance Sort by last modified time
    Searched full:trylock (Results 1 - 25 of 58) sorted by null

1 2 3

  /libcore/luni/src/test/java/tests/api/java/util/concurrent/
ReentrantReadWriteLockTest.java 210 * timed write-tryLock is interruptible
217 lock.writeLock().tryLock(SMALL_DELAY_MS, MILLISECONDS);
247 * timed read-tryLock is interruptible
254 lock.readLock().tryLock(LONG_DELAY_MS, MILLISECONDS);
265 * write-tryLock fails if locked
272 threadAssertFalse(lock.writeLock().tryLock());
281 * read-tryLock fails if locked
288 threadAssertFalse(lock.readLock().tryLock());
304 threadAssertTrue(lock.readLock().tryLock());
368 * Read trylock succeeds if write locked by current threa
    [all...]
ReentrantLockTest.java 102 * tryLock on an unlocked lock succeeds
106 assertTrue(rl.tryLock());
259 * timed tryLock is interruptible.
266 lock.tryLock(MEDIUM_DELAY_MS,MILLISECONDS);
277 * TryLock on a locked lock fails
284 threadAssertFalse(lock.tryLock());
293 * Timed tryLock on a locked lock times out
300 threadAssertFalse(lock.tryLock(1, MILLISECONDS));
  /external/kernel-headers/original/asm-generic/
mutex-xchg.h 81 * @fail_fn: spinlock based trylock implementation
89 * If the architecture has no effective trylock variant, it should call the
90 * <fail_fn> spinlock-based trylock variant unconditionally.
  /external/kernel-headers/original/linux/
rwsem.h 33 * trylock for reading -- returns 1 if successful, 0 if contention
43 * trylock for writing -- returns 1 if successful, 0 if contention
lockdep.h 179 int trylock; member in struct:held_lock
234 int trylock, int read, int check, unsigned long ip);
  /external/chromium/sdch/open-vcdiff/src/
mutex.h 45 // NOTE: by default, we have #ifdef'ed out the TryLock() method.
47 // 1) TryLock() under Windows is a bit annoying (it requires a
49 // 2) TryLock() is broken for NO_THREADS mode, at least in NDEBUG
51 // If you need TryLock(), and either these two caveats are not a
111 // lines, and change TryLock() to assert(0) or something.
149 inline bool TryLock(); // If free, Lock() and return true, else return false
195 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
207 bool Mutex::TryLock() { return is_safe_ ?
228 bool Mutex::TryLock() { return is_safe_ ?
251 bool Mutex::TryLock() { return is_safe_
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/locks/
ReentrantLock.java 39 * Also note that the untimed {@link #tryLock() tryLock} method does not
100 * Performs non-fair tryLock. tryAcquire is
102 * try for trylock method.
321 * fair ordering policy, a call to {@code tryLock()} <em>will</em>
327 * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) }
340 public boolean tryLock() {
353 * are waiting for the lock. This is in contrast to the {@link #tryLock()}
354 * method. If you want a timed {@code tryLock} that does permit barging o
    [all...]
ReentrantReadWriteLock.java 53 * {@link ReadLock#tryLock()} and {@link WriteLock#tryLock()} methods
524 * Performs tryLock for write, enabling barging in both modes.
545 * Performs tryLock for read, enabling barging in both modes.
756 * fair ordering policy, a call to {@code tryLock()}
762 * for this lock, then use {@link #tryLock(long, TimeUnit)
763 * tryLock(0, TimeUnit.SECONDS) } which is almost equivalent
772 public boolean tryLock() {
787 * lock. This is in contrast to the {@link #tryLock()}
788 * method. If you want a timed {@code tryLock} that doe
    [all...]
Lock.java 68 * #tryLock()}), an attempt to acquire the lock that can be
70 * the lock that can timeout ({@link #tryLock(long, TimeUnit)}).
215 * if (lock.tryLock()) {
231 boolean tryLock();
291 boolean tryLock(long time, TimeUnit unit) throws InterruptedException;
  /cts/tools/host/src/com/android/cts/
HostLock.java 43 mLock = mFileOs.getChannel().tryLock();
  /system/extras/tests/bionic/libc/common/
test_pthread_mutex.c 37 * is detected with a PTHREAD_MUTEX_ERRORCHECK lock() or trylock(), but
170 /* perform init/trylock/unlock/destroy then init/lock/trylock/destroy */
  /external/webkit/JavaScriptCore/wtf/
ThreadingNone.cpp 48 bool Mutex::tryLock() { return false; }
  /external/webkit/WebKit/win/WebKit.vcproj/
WebKit.def 131 ?tryLock@Mutex@WTF@@QAE_NXZ
WebKit_Cairo.def 132 ?tryLock@Mutex@WTF@@QAE_NXZ
WebKit_Cairo_debug.def 132 ?tryLock@Mutex@WTF@@QAE_NXZ
WebKit_debug.def 131 ?tryLock@Mutex@WTF@@QAE_NXZ
  /libcore/luni/src/test/java/libcore/java/nio/channels/
OldFileChannelTest.java 229 * @tests java.nio.channels.FileChannel#tryLock(long, long, boolean)
234 method = "tryLock",
239 writeOnlyFileChannel.tryLock(0, -1, false);
246 writeOnlyFileChannel.tryLock(-1, 0, false);
253 readWriteFileChannel.tryLock(-1, -1, false);
260 readWriteFileChannel.tryLock(Long.MAX_VALUE, 1, false);
272 readWriteFileChannel.tryLock(tooBig, 1, false);
278 readWriteFileChannel.tryLock(0, tooBig, false);
    [all...]
  /external/webkit/JavaScriptCore/wtf/qt/
ThreadingQt.cpp 238 bool Mutex::tryLock()
240 return m_mutex->tryLock();
  /frameworks/base/packages/TtsService/src/android/tts/
TtsService.java 546 speechQueueLock.tryLock(SPEECHQUEUELOCK_TIMEOUT, TimeUnit.MILLISECONDS);
581 Log.e(SERVICE_TAG, "TTS stop: tryLock interrupted");
604 speechQueueAvailable = speechQueueLock.tryLock(SPEECHQUEUELOCK_TIMEOUT,
639 Log.e(SERVICE_TAG, "TTS killAllUtterances(): tryLock interrupted");
661 speechQueueLock.tryLock(SPEECHQUEUELOCK_TIMEOUT, TimeUnit.MILLISECONDS);
696 Log.e(SERVICE_TAG, "TTS stopAll: tryLock interrupted");
778 synthAvailable = synthesizerLock.tryLock();
    [all...]
  /development/simulator/app/
Shmem.h 82 bool tryLock(void);
  /external/kernel-headers/original/asm-x86/
semaphore_32.h 21 * also implemented the `trylock' semaphore operation.
  /external/webkit/JavaScriptCore/wtf/gtk/
ThreadingGtk.cpp 190 bool Mutex::tryLock()
  /frameworks/base/services/audioflinger/
AudioPolicyService.cpp 391 static bool tryLock(Mutex& mutex)
395 if (mutex.tryLock() == NO_ERROR) {
426 bool locked = tryLock(mLock);
757 bool locked = tryLock(mLock);
    [all...]
  /libcore/luni/src/main/java/java/nio/channels/
FileChannel.java 194 * <code>tryLock()</code> methods.
572 * {@code fileChannel.tryLock(0L, Long.MAX_VALUE, false);}
588 public final FileLock tryLock() throws IOException {
589 return tryLock(0L, Long.MAX_VALUE, false);
621 public abstract FileLock tryLock(long position, long size, boolean shared)
    [all...]
  /frameworks/base/include/utils/
threads.h 226 status_t tryLock();
282 inline status_t Mutex::tryLock() {

Completed in 1083 milliseconds

1 2 3