Home
last modified time | relevance | path

Searched refs:TryLock (Results 1 – 23 of 23) sorted by relevance

/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_mutex.cc30 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()
Dtsan_test_util.h51 bool TryLock();
107 bool TryLock(const Mutex &m);
Dtsan_test_util_posix.cc194 bool Mutex::TryLock() { in TryLock() function in Mutex
347 ev->res = static_cast<Mutex*>(ev->ptr)->TryLock(); in HandleEvent()
482 bool ScopedThread::TryLock(const Mutex &m) { in TryLock() function in ScopedThread
/external/gflags/src/
Dmutex.h177 inline bool TryLock(); // If free, Lock() and return true, else return false
225 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock() function
244 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function
268 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function
293 bool Mutex::TryLock() { return is_safe_ ? in TryLock() function
/external/v8/src/base/platform/
Dmutex.cc106 bool Mutex::TryLock() { in TryLock() function in v8::base::Mutex
147 bool RecursiveMutex::TryLock() { in TryLock() function in v8::base::RecursiveMutex
184 bool Mutex::TryLock() {
225 bool RecursiveMutex::TryLock() {
Dmutex.h54 bool TryLock() V8_WARN_UNUSED_RESULT;
153 bool TryLock() V8_WARN_UNUSED_RESULT;
/external/clang/test/SemaCXX/
Dwarn-thread-safety-analysis.cpp35 bool TryLock() __attribute__((exclusive_trylock_function(true)));
1714 if (mu.TryLock()) { in foo1()
1721 if (!mu.TryLock()) return; in foo2()
1727 bool b = mu.TryLock(); in foo3()
1735 bool b = mu.TryLock(); in foo4()
1742 while (mu.TryLock()) { in foo5()
1749 bool b = mu.TryLock(); in foo6()
1757 bool b1 = mu.TryLock(); in foo7()
1768 bool b = mu.TryLock(); in foo8()
1783 bool b = mu.TryLock(); in foo9()
[all …]
Dwarn-thread-safety-verbose.cpp32 bool TryLock() __attribute__((exclusive_trylock_function(true)));
Dwarn-thread-safety-negative.cpp35 bool TryLock() __attribute__((exclusive_trylock_function(true)));
Dwarn-thread-safety-parsing.cpp33 bool TryLock() EXCLUSIVE_TRYLOCK_FUNCTION(true);
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h30 if (TryLock()) in Lock()
35 bool TryLock() { in TryLock() function
Dsanitizer_quarantine.h71 if (cache_.Size() > GetSize() && recycle_mutex_.TryLock()) in Drain()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mutex_test.cc43 if (!mtx_->TryLock()) in TryWrite()
/external/sfntly/cpp/src/test/
Dlock_test.cc237 TEST(LockTest, TryLock) { in TEST() argument
/external/libchrome/base/synchronization/
Dlock_unittest.cc113 TEST(LockTest, TryLock) { in TEST() argument
/external/clang/test/PCH/
Dthread-safety-attrs.cpp38 bool TryLock() __attribute__((exclusive_trylock_function(true)));
/external/toolchain-utils/dejagnu/
Drun_dejagnu.py371 if machine.TryLock(timeout=300, exclusive=True):
/external/toolchain-utils/
Dfile_lock_machine.py284 def TryLock(self, timeout=300, exclusive=False, reason=''): member in Machine
/external/webrtc/webrtc/base/
Dstream.h405 bool TryLock();
Dstream.cc494 bool FileStream::TryLock() { in TryLock() function in rtc::FileStream
/external/v8/src/
Disolate.h1950 static bool TryLock(Isolate* isolate) { in TryLock() function
1951 return isolate->break_access()->TryLock(); in TryLock()
/external/compiler-rt/lib/asan/
Dasan_report.cc636 if (lock_.TryLock()) { in ScopedInErrorReport()
/external/clang/docs/
DThreadSafetyAnalysis.rst850 bool TryLock() TRY_ACQUIRE(true);