/external/chromium_org/chrome/common/ |
multi_process_lock_mac.cc | 23 virtual bool TryLock() OVERRIDE {
|
multi_process_lock_win.cc | 21 virtual bool TryLock() {
|
/external/chromium_org/mojo/public/cpp/utility/lib/ |
mutex.cc | 41 bool Mutex::TryLock() {
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
ThreadingPthreads.cpp | 153 // There is a separate tryLock implementation for the Mutex and the 154 // RecursiveMutex since on Windows we need to manually check if tryLock should 158 bool Mutex::tryLock() 177 bool RecursiveMutex::tryLock()
|
/external/ceres-solver/internal/ceres/ |
mutex.h | 41 // NOTE: by default, we have #ifdef'ed out the TryLock() method. 43 // 1) TryLock() under Windows is a bit annoying (it requires a 45 // 2) TryLock() is broken for NO_THREADS mode, at least in NDEBUG 47 // If you need TryLock(), and either these two caveats are not a 107 // lines, and change TryLock() to assert(0) or something. 161 inline bool TryLock(); // If free, Lock() and return true, else return false 209 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 221 bool Mutex::TryLock() { return is_safe_ ? 241 bool Mutex::TryLock() { return is_safe_ ? 263 bool Mutex::TryLock() { return is_safe_ [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
FileChannelTest.java | 863 * @tests java.nio.channels.FileChannel#tryLock() 867 // Verify that calling tryLock() leads to the method 868 // tryLock(long, long, boolean) being called with a 0 for the 871 mockFileChannel.tryLock(); 876 * @tests java.nio.channels.FileChannel#tryLock(long, long, boolean) 881 readOnlyFileChannel.tryLock(0, 10, false); 889 writeOnlyFileChannel.tryLock(0, 10, false); 897 readWriteFileChannel.tryLock(0, 10, false); 905 readWriteFileChannel.tryLock(-1, 0, false); 913 * @tests java.nio.channels.FileChannel#tryLock(long, long, boolean [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
ReentrantReadWriteLockTest.java | 312 * timed write-tryLock is interruptible 322 lock.writeLock().tryLock(2 * LONG_DELAY_MS, MILLISECONDS); 352 * timed read-tryLock is interruptible 362 lock.readLock().tryLock(2 * LONG_DELAY_MS, MILLISECONDS); 372 * write-tryLock on an unlocked lock succeeds 379 assertTrue(lock.writeLock().tryLock()); 381 assertTrue(lock.writeLock().tryLock()); 388 * write-tryLock fails if locked 398 assertFalse(lock.writeLock().tryLock()); 406 * read-tryLock fails if locke [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
WaveShaperProcessor.cpp | 87 // The audio thread can't block on this lock, so we call tryLock() instead. 94 // Too bad - the tryLock() failed. We must be in the middle of a setCurve() call.
|
/external/deqp/framework/delibs/decpp/ |
deThreadSafeRingBuffer.hpp | 106 if (!m_writeMutex.tryLock()) 132 if (!m_readMutex.tryLock())
|
deBlockBuffer.hpp | 276 if (!m_writeLock.tryLock()) 325 if (!m_writeLock.tryLock()) 355 if (!m_readLock.tryLock())
|
/external/chromium_org/third_party/webrtc/base/ |
filelock.h | 36 static FileLock* TryLock(const std::string& path);
|
/external/compiler-rt/lib/tsan/dd/ |
dd_rtl.h | 63 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock);
|
/external/valgrind/main/drd/ |
drd_mutex.h | 44 const Bool trylock);
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
sync.h | 33 int tryLock() {
|
/hardware/samsung_slsi/exynos5/mobicore/daemon/Common/ |
CMutex.h | 51 int32_t trylock(void);
|
/art/runtime/base/ |
mutex_test.cc | 52 ASSERT_TRUE(mu.TryLock(Thread::Current())); 84 ASSERT_TRUE(mu.TryLock(Thread::Current())); 86 ASSERT_TRUE(mu.TryLock(Thread::Current()));
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
ReentrantLock.java | 38 * Also note that the untimed {@link #tryLock()} method does not 97 * Performs non-fair tryLock. tryAcquire is implemented in 98 * subclasses, but both need nonfair try for trylock method. 316 * fair ordering policy, a call to {@code tryLock()} <em>will</em> 322 * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) } 335 public boolean tryLock() { 348 * are waiting for the lock. This is in contrast to the {@link #tryLock()} 349 * method. If you want a timed {@code tryLock} that does permit barging on 353 * if (lock.tryLock() || [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
simple_mutex.h | 48 // NOTE: TryLock() is broken for NO_THREADS mode, at least in NDEBUG 117 // lines, and change TryLock() to assert(0) or something. 166 inline bool TryLock(); // If free, Lock() and return true, else return false 212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 229 bool Mutex::TryLock() { return is_safe_ ? 251 bool Mutex::TryLock() { return is_safe_ ? 274 bool Mutex::TryLock() { return is_safe_ ?
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
simple_mutex.h | 48 // NOTE: TryLock() is broken for NO_THREADS mode, at least in NDEBUG 117 // lines, and change TryLock() to assert(0) or something. 166 inline bool TryLock(); // If free, Lock() and return true, else return false 212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 229 bool Mutex::TryLock() { return is_safe_ ? 251 bool Mutex::TryLock() { return is_safe_ ? 274 bool Mutex::TryLock() { return is_safe_ ?
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
Monitor.java | 311 if (!fair && lock.tryLock()) { 321 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); 340 return lock.tryLock(time, unit); 351 return lock.tryLock(); 410 if (!fair && lock.tryLock()) { 414 if (!lock.tryLock(time, unit)) { 445 if (!fair && lock.tryLock()) { 453 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) { 564 if (!lock.tryLock(time, unit)) { 591 if (!lock.tryLock()) { [all...] |
/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...] |
/external/lldb/source/API/ |
SBThread.cpp | 115 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) 142 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) 200 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) 276 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) 405 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) 465 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) 493 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) 945 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ExpandableBinaryDictionary.java | 444 lockAcquired = mLock.readLock().tryLock( 461 Log.e(TAG, "Interrupted tryLock() in getSuggestionsWithSessionId().", e); 475 lockAcquired = mLock.readLock().tryLock( 484 Log.e(TAG, "Interrupted tryLock() in isInDictionary().", e); 503 lockAcquired = mLock.readLock().tryLock( 512 Log.e(TAG, "Interrupted tryLock() in getMaxFrequencyOfExactMatches().", e);
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_deadlock_detector1.cc | 51 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, bool trylock); 147 void DD::MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, bool trylock) { 162 if (!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 */
|