/external/lldb/include/lldb/Host/ |
D | Mutex.h | 128 TryLock (Mutex &mutex, const char *failure_message = NULL); 131 TryLock (Mutex *mutex, const char *failure_message = NULL) 134 return TryLock(*mutex, failure_message); 216 TryLock(const char *failure_message = NULL); 271 TryLock (const char *failure_message = NULL) 273 int return_value = Mutex::TryLock(); 303 TryLock (const char *failure_message = NULL);
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | filelock_unittest.cc | 49 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in Run() 76 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 84 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 89 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 92 scoped_ptr<FileLock> lock2(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 97 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
|
D | filelock.cc | 59 FileLock* FileLock::TryLock(const std::string& path) { in TryLock() function in talk_base::FileLock 66 ok = stream->Open(path, "a", NULL) && stream->TryLock(); in TryLock()
|
/external/chromium_org/third_party/webrtc/base/ |
D | filelock_unittest.cc | 32 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in Run() 59 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 67 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 72 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 75 scoped_ptr<FileLock> lock2(FileLock::TryLock(temp_file_.pathname())); in TEST_F() 80 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
|
D | filelock.cc | 42 FileLock* FileLock::TryLock(const std::string& path) { in TryLock() function in rtc::FileLock 49 ok = stream->Open(path, "a", NULL) && stream->TryLock(); in TryLock()
|
/external/chromium_org/chrome/common/ |
D | multi_process_lock_unittest.cc | 102 EXPECT_FALSE(test_lock->TryLock()); in TEST_F() 108 EXPECT_TRUE(test_lock->TryLock()); in TEST_F() 117 EXPECT_TRUE(test_lock->TryLock()); in TEST_F() 121 EXPECT_TRUE(test_lock->TryLock()); in TEST_F() 137 EXPECT_TRUE(test_lock->TryLock()); in TEST_F() 158 EXPECT_FALSE(test_lock->TryLock()); in MULTIPROCESS_TEST_MAIN() 169 EXPECT_TRUE(test_lock->TryLock()); in MULTIPROCESS_TEST_MAIN()
|
D | multi_process_lock.h | 27 virtual bool TryLock() = 0;
|
/external/chromium_org/mojo/public/cpp/utility/tests/ |
D | mutex_unittest.cc | 26 EXPECT_TRUE(mutex.TryLock()); in TEST() 35 EXPECT_TRUE(mutex.TryLock()); in TEST() 71 if (mutex_->TryLock()) { in Fiddle() 174 try_lock_succeeded_ = mutex_->TryLock(); in Run() 188 TEST(MutexTest, TryLock) { in TEST() argument 200 ASSERT_TRUE(mutex.TryLock()); in TEST() 250 mutex.TryLock(); in TEST()
|
/external/chromium_org/v8/test/cctest/ |
D | test-mutex.cc | 103 CHECK(recursive_mutex1.TryLock()); in TEST() 104 CHECK(recursive_mutex2.TryLock()); in TEST() 111 CHECK(recursive_mutex1.TryLock()); in TEST() 113 CHECK(recursive_mutex2.TryLock()); in TEST()
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_mutex.cc | 30 CHECK(t.TryLock(m)); in TEST() 34 CHECK(!t.TryLock(m)); in TEST() 48 CHECK(t.TryLock(m)); in TEST() 52 CHECK(!t.TryLock(m)); in TEST() 66 CHECK(t.TryLock(m)); in TEST() 70 CHECK(!t.TryLock(m)); in TEST() 84 CHECK(!t.TryLock(m)); in TEST()
|
D | tsan_test_util.h | 43 bool TryLock(); 99 bool TryLock(const Mutex &m);
|
/external/lldb/source/API/ |
D | SBFrame.cpp | 123 if (stop_locker.TryLock(&process->GetRunLock())) in GetSymbolContext() 165 if (stop_locker.TryLock(&process->GetRunLock())) in GetModule() 207 if (stop_locker.TryLock(&process->GetRunLock())) in GetCompileUnit() 247 if (stop_locker.TryLock(&process->GetRunLock())) in GetFunction() 287 if (stop_locker.TryLock(&process->GetRunLock())) in GetSymbol() 326 if (stop_locker.TryLock(&process->GetRunLock())) in GetBlock() 365 if (stop_locker.TryLock(&process->GetRunLock())) in GetFrameBlock() 404 if (stop_locker.TryLock(&process->GetRunLock())) in GetLineEntry() 460 if (stop_locker.TryLock(&process->GetRunLock())) in GetPC() 500 if (stop_locker.TryLock(&process->GetRunLock())) in SetPC() [all …]
|
D | SBThread.cpp | 115 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetStopReason() 142 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetStopReasonDataCount() 200 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetStopReasonDataAtIndex() 276 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetStopDescription() 405 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetStopReturnValue() 465 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetName() 493 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetQueueName() 945 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in Suspend() 970 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in Resume() 1039 if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) in GetNumFrames() [all …]
|
D | SBProcess.cpp | 247 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetNumThreads() 518 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetThreadAtIndex() 856 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetThreadByID() 883 const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock()); in GetThreadByIndexID() 989 if (stop_locker.TryLock(&process_sp->GetRunLock())) in ReadMemory() 1031 if (stop_locker.TryLock(&process_sp->GetRunLock())) in ReadCStringFromMemory() 1059 if (stop_locker.TryLock(&process_sp->GetRunLock())) in ReadUnsignedFromMemory() 1087 if (stop_locker.TryLock(&process_sp->GetRunLock())) in ReadPointerFromMemory() 1129 if (stop_locker.TryLock(&process_sp->GetRunLock())) in WriteMemory() 1216 if (stop_locker.TryLock(&process_sp->GetRunLock())) in LoadImage() [all …]
|
/external/ceres-solver/internal/ceres/ |
D | mutex.h | 161 inline bool TryLock(); // If free, Lock() and return true, else return false 209 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() function 221 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 241 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 263 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function
|
/external/chromium_org/third_party/re2/util/ |
D | mutex.h | 64 inline bool TryLock(); // If free, Lock() and return true, else return false 103 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() function 116 bool Mutex::TryLock() { return pthread_rwlock_trywrlock(&mutex_) == 0; } in TryLock() function 131 bool Mutex::TryLock() { return pthread_mutex_trylock(&mutex_) == 0; } in TryLock() function 142 bool Mutex::TryLock() { return TryEnterCriticalSection(&mutex_) != 0; } in TryLock() function
|
/external/regex-re2/util/ |
D | mutex.h | 60 inline bool TryLock(); // If free, Lock() and return true, else return false 99 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() function 112 bool Mutex::TryLock() { return pthread_rwlock_trywrlock(&mutex_) == 0; } in TryLock() function 127 bool Mutex::TryLock() { return pthread_mutex_trylock(&mutex_) == 0; } in TryLock() function 138 bool Mutex::TryLock() { return TryEnterCriticalSection(&mutex_) != 0; } in TryLock() function
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
D | simple_mutex.h | 166 inline bool TryLock(); // If free, Lock() and return true, else return false 212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() function 229 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 251 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 274 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
D | simple_mutex.h | 166 inline bool TryLock(); // If free, Lock() and return true, else return false 212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() function 229 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 251 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function 274 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function
|
/external/lldb/source/Host/common/ |
D | Mutex.cpp | 166 Mutex::Locker::TryLock (Mutex &mutex, const char *failure_message) in TryLock() function in Mutex::Locker 174 if (mutex.TryLock(failure_message) == 0) in TryLock() 304 Mutex::TryLock(const char *failure_message) in TryLock() function in Mutex 378 LoggingMutex::TryLock (const char *failure_message) in TryLock() function in LoggingMutex 381 int x = Mutex::TryLock(failure_message); in TryLock()
|
/external/chromium_org/mojo/public/cpp/utility/ |
D | mutex.h | 34 bool TryLock() { return pthread_mutex_trylock(&mutex_) == 0; } in TryLock() function 43 bool TryLock();
|
/external/chromium_org/v8/src/platform/ |
D | mutex.h | 53 bool TryLock() V8_WARN_UNUSED_RESULT; 153 bool TryLock() V8_WARN_UNUSED_RESULT;
|
D | mutex.cc | 139 bool Mutex::TryLock() { in TryLock() function in v8::internal::Mutex 180 bool RecursiveMutex::TryLock() { in TryLock() function in v8::internal::RecursiveMutex
|
/external/clang/test/SemaCXX/ |
D | warn-thread-safety-analysis.cpp | 35 bool TryLock() __attribute__((exclusive_trylock_function(true))); 1666 if (mu.TryLock()) { in foo1() 1673 if (!mu.TryLock()) return; in foo2() 1679 bool b = mu.TryLock(); in foo3() 1687 bool b = mu.TryLock(); in foo4() 1694 while (mu.TryLock()) { in foo5() 1701 bool b = mu.TryLock(); in foo6() 1709 bool b1 = mu.TryLock(); in foo7() 1720 bool b = mu.TryLock(); in foo8() 1735 bool b = mu.TryLock(); in foo9() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mutex.h | 30 if (TryLock()) in Lock() 35 bool TryLock() { in TryLock() function
|