/external/v8/src/base/platform/ |
H A D | mutex.h | 29 // either |Lock()| or |TryLock()| until it calls |Unlock()|. 31 // |Lock()|) or receive a |false| return value (for |TryLock()|) if they 34 // |TryLock()|. The behavior of a program is undefined if a mutex is destroyed 54 bool TryLock() WARN_UNUSED_RESULT; 118 // when it successfully calls either |Lock()| or |TryLock()|. During this 119 // period, the thread may make additional calls to |Lock()| or |TryLock()|. 123 // calls to |Lock()|) or receive a |false| return value (for |TryLock()|) if 127 // probably abort the process and calls to |TryLock()| return false. 153 bool TryLock() WARN_UNUSED_RESULT;
|
H A D | mutex.cc | 139 bool Mutex::TryLock() { function in class:v8::base::Mutex 180 bool RecursiveMutex::TryLock() { function in class:v8::base::RecursiveMutex
|
/external/regex-re2/util/ |
H A D | 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; } function in class:re2::Mutex 112 bool Mutex::TryLock() { return pthread_rwlock_trywrlock(&mutex_) == 0; } function in class:re2::Mutex 127 bool Mutex::TryLock() { return pthread_mutex_trylock(&mutex_) == 0; } function in class:re2::Mutex 138 bool Mutex::TryLock() { return TryEnterCriticalSection(&mutex_) != 0; } function in class:re2::Mutex
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
H A D | 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));
|
H A D | tsan_test_util.h | 51 bool TryLock(); 107 bool TryLock(const Mutex &m);
|
H A D | tsan_test_util_posix.cc | 194 bool Mutex::TryLock() { 347 ev->res = static_cast<Mutex*>(ev->ptr)->TryLock(); 482 bool ScopedThread::TryLock(const Mutex &m) {
|
/external/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_mutex.h | 30 if (TryLock()) 35 bool TryLock() { function in class:__sanitizer::StaticSpinMutex
|
H A D | sanitizer_quarantine.h | 71 if (cache_.Size() > GetSize() && recycle_mutex_.TryLock())
|
/external/clang/test/SemaCXX/ |
H A D | warn-thread-safety-verbose.cpp | 32 bool TryLock() __attribute__((exclusive_trylock_function(true)));
|
H A D | warn-thread-safety-negative.cpp | 35 bool TryLock() __attribute__((exclusive_trylock_function(true)));
|
H A D | warn-thread-safety-analysis.cpp | 35 bool TryLock() __attribute__((exclusive_trylock_function(true))); 1714 if (mu.TryLock()) { 1721 if (!mu.TryLock()) return; 1727 bool b = mu.TryLock(); 1735 bool b = mu.TryLock(); 1742 while (mu.TryLock()) { 1749 bool b = mu.TryLock(); 1757 bool b1 = mu.TryLock(); 1768 bool b = mu.TryLock(); 1783 bool b = mu.TryLock(); [all...] |
H A D | warn-thread-safety-parsing.cpp | 33 bool TryLock() EXCLUSIVE_TRYLOCK_FUNCTION(true); 707 // Exclusive TryLock Function (etf) 780 // Shared TryLock Function (stf)
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_mutex_test.cc | 43 if (!mtx_->TryLock())
|
/external/libchrome/base/synchronization/ |
H A D | lock_unittest.cc | 112 TEST(LockTest, TryLock) {
|
/external/sfntly/cpp/src/test/ |
H A D | lock_test.cc | 237 TEST(LockTest, TryLock) {
|
/external/valgrind/drd/tests/ |
H A D | tsan_thread_wrappers_pthread.h | 203 bool TryLock() { return (0 == pthread_mutex_trylock(&mu_));} function in class:Mutex 211 bool ReaderTryLock() { return TryLock();}
|
H A D | tsan_unittest.cpp | 1221 // test23: TN. TryLock, ReaderLock, ReaderTryLock. {{{1 1223 // Correct synchronization with TryLock, Lock, ReaderTryLock, ReaderLock. 1229 if (MU.TryLock()) { 2746 // test55: FP. Synchronization with TryLock. Not easy for race detectors {{{1 2748 // "Correct" synchronization with TryLock and Lock. 2763 if (!MU.TryLock()) {
|
/external/clang/test/PCH/ |
H A D | thread-safety-attrs.cpp | 38 bool TryLock() __attribute__((exclusive_trylock_function(true)));
|
/external/toolchain-utils/dejagnu/ |
H A D | run_dejagnu.py | 371 if machine.TryLock(timeout=300, exclusive=True):
|
/external/toolchain-utils/ |
H A D | file_lock_machine.py | 282 def TryLock(self, timeout=300, exclusive=False, reason=''): member in class:Machine
|
/external/webrtc/webrtc/base/ |
H A D | stream.h | 405 bool TryLock();
|
H A D | stream.cc | 494 bool FileStream::TryLock() { function in class:rtc::FileStream
|
/external/v8/src/ |
H A D | isolate.h | 1541 static bool TryLock(Isolate* isolate) { function in class:v8::internal::BASE_EMBEDDED 1542 return isolate->break_access()->TryLock();
|
/external/compiler-rt/lib/asan/ |
H A D | asan_report.cc | 636 if (lock_.TryLock()) {
|