/external/valgrind/drd/tests/ |
trylock.vgtest | 2 prog: trylock
|
trylock.stderr.exp | 11 by 0x........: main (trylock.c:?) 14 by 0x........: main (trylock.c:?)
|
/external/v8/src/base/platform/ |
mutex-unittest.cc | 73 EXPECT_TRUE(recursive_mutex1.TryLock()); 74 EXPECT_TRUE(recursive_mutex2.TryLock()); 81 EXPECT_TRUE(recursive_mutex1.TryLock()); 83 EXPECT_TRUE(recursive_mutex2.TryLock());
|
mutex.h | 28 // either |Lock()| or |TryLock()| until it calls |Unlock()|. 30 // |Lock()|) or receive a |false| return value (for |TryLock()|) if they 33 // |TryLock()|. The behavior of a program is undefined if a mutex is destroyed 53 bool TryLock() WARN_UNUSED_RESULT; 117 // when it successfully calls either |Lock()| or |TryLock()|. During this 118 // period, the thread may make additional calls to |Lock()| or |TryLock()|. 122 // calls to |Lock()|) or receive a |false| return value (for |TryLock()|) if 126 // probably abort the process and calls to |TryLock()| return false. 152 bool TryLock() WARN_UNUSED_RESULT;
|
mutex.cc | 139 bool Mutex::TryLock() { 180 bool RecursiveMutex::TryLock() {
|
/external/fio/ |
filelock.c | 52 static struct fio_filelock *get_filelock(int trylock, int *retry) 58 if (ff || trylock) 133 static struct fio_filelock *fio_hash_get(uint32_t hash, int trylock) 141 ff = get_filelock(trylock, &retry); 168 static int __fio_lock_file(const char *fname, int trylock) 176 ff = fio_hash_get(hash, trylock); 182 assert(!trylock); 186 if (!trylock) {
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
sync.h | 18 int tryLock() {
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
Mutex.h | 82 ** Function: tryLock 89 bool tryLock ();
|
Mutex.cpp | 110 ** Function: tryLock 117 bool Mutex::tryLock () 122 ALOGE ("Mutex::tryLock: error=0x%X", res);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ReadOnlyBinaryDictionary.java | 58 if (mLock.readLock().tryLock()) { 72 if (mLock.readLock().tryLock()) { 84 if (mLock.readLock().tryLock()) { 96 if (mLock.readLock().tryLock()) { 108 if (mLock.readLock().tryLock()) {
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
tsan_mutex.cc | 30 CHECK(t.TryLock(m)); 34 CHECK(!t.TryLock(m)); 48 CHECK(t.TryLock(m)); 52 CHECK(!t.TryLock(m)); 66 CHECK(t.TryLock(m)); 70 CHECK(!t.TryLock(m)); 84 CHECK(!t.TryLock(m));
|
/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 | 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...] |
/packages/apps/Nfc/nci/jni/ |
Mutex.cpp | 107 ** Function: tryLock 114 bool Mutex::tryLock () 119 ALOGE ("Mutex::tryLock: error=0x%X", res);
|
Mutex.h | 78 ** Function: tryLock 85 bool tryLock ();
|
/external/lldb/source/API/ |
SBFrame.cpp | 123 if (stop_locker.TryLock(&process->GetRunLock())) 165 if (stop_locker.TryLock(&process->GetRunLock())) 207 if (stop_locker.TryLock(&process->GetRunLock())) 247 if (stop_locker.TryLock(&process->GetRunLock())) 287 if (stop_locker.TryLock(&process->GetRunLock())) 326 if (stop_locker.TryLock(&process->GetRunLock())) 365 if (stop_locker.TryLock(&process->GetRunLock())) 404 if (stop_locker.TryLock(&process->GetRunLock())) 460 if (stop_locker.TryLock(&process->GetRunLock())) 500 if (stop_locker.TryLock(&process->GetRunLock()) [all...] |
/external/regex-re2/util/ |
mutex.h | 39 // lines, and change TryLock() to assert(0) or something. 60 inline bool TryLock(); // If free, Lock() and return true, else return false 99 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } 112 bool Mutex::TryLock() { return pthread_rwlock_trywrlock(&mutex_) == 0; } 127 bool Mutex::TryLock() { return pthread_mutex_trylock(&mutex_) == 0; } 138 bool Mutex::TryLock() { return TryEnterCriticalSection(&mutex_) != 0; }
|
/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/jsr166-tests/src/test/java/jsr166/ |
ReentrantReadWriteLockTest.java | 329 * timed write-tryLock is interruptible 339 lock.writeLock().tryLock(2 * LONG_DELAY_MS, MILLISECONDS); 369 * timed read-tryLock is interruptible 379 lock.readLock().tryLock(2 * LONG_DELAY_MS, MILLISECONDS); 389 * write-tryLock on an unlocked lock succeeds 396 assertTrue(lock.writeLock().tryLock()); 398 assertTrue(lock.writeLock().tryLock()); 405 * write-tryLock fails if locked 415 assertFalse(lock.writeLock().tryLock()); 423 * read-tryLock fails if locke [all...] |
/external/deqp/framework/delibs/decpp/ |
deThreadSafeRingBuffer.hpp | 106 if (!m_writeMutex.tryLock()) 132 if (!m_readMutex.tryLock())
|
/external/compiler-rt/lib/tsan/dd/ |
dd_rtl.h | 62 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock);
|
/external/valgrind/drd/ |
drd_mutex.h | 45 const Bool trylock);
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
sync.h | 33 int tryLock() {
|
/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 | 39 * Also note that the untimed {@link #tryLock()} method does not 98 * Performs non-fair tryLock. tryAcquire is implemented in 99 * subclasses, but both need nonfair try for trylock method. 317 * fair ordering policy, a call to {@code tryLock()} <em>will</em> 323 * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) } 336 public boolean tryLock() { 349 * are waiting for the lock. This is in contrast to the {@link #tryLock()} 350 * method. If you want a timed {@code tryLock} that does permit barging on 354 * if (lock.tryLock() || [all...] |