Searched refs:TryLock (Results 1 - 24 of 24) sorted by relevance

/external/v8/src/base/platform/
H A Dmutex.h29 // 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 Dmutex.cc139 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 Dmutex.h39 // 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 Dtsan_mutex.cc30 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 Dtsan_test_util.h51 bool TryLock();
107 bool TryLock(const Mutex &m);
H A Dtsan_test_util_posix.cc194 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 Dsanitizer_mutex.h30 if (TryLock())
35 bool TryLock() { function in class:__sanitizer::StaticSpinMutex
H A Dsanitizer_quarantine.h71 if (cache_.Size() > GetSize() && recycle_mutex_.TryLock())
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-verbose.cpp32 bool TryLock() __attribute__((exclusive_trylock_function(true)));
H A Dwarn-thread-safety-negative.cpp35 bool TryLock() __attribute__((exclusive_trylock_function(true)));
H A Dwarn-thread-safety-analysis.cpp35 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 Dwarn-thread-safety-parsing.cpp33 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 Dsanitizer_mutex_test.cc43 if (!mtx_->TryLock())
/external/libchrome/base/synchronization/
H A Dlock_unittest.cc112 TEST(LockTest, TryLock) {
/external/sfntly/cpp/src/test/
H A Dlock_test.cc237 TEST(LockTest, TryLock) {
/external/valgrind/drd/tests/
H A Dtsan_thread_wrappers_pthread.h203 bool TryLock() { return (0 == pthread_mutex_trylock(&mu_));} function in class:Mutex
211 bool ReaderTryLock() { return TryLock();}
H A Dtsan_unittest.cpp1221 // 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 Dthread-safety-attrs.cpp38 bool TryLock() __attribute__((exclusive_trylock_function(true)));
/external/toolchain-utils/dejagnu/
H A Drun_dejagnu.py371 if machine.TryLock(timeout=300, exclusive=True):
/external/toolchain-utils/
H A Dfile_lock_machine.py282 def TryLock(self, timeout=300, exclusive=False, reason=''): member in class:Machine
/external/webrtc/webrtc/base/
H A Dstream.h405 bool TryLock();
H A Dstream.cc494 bool FileStream::TryLock() { function in class:rtc::FileStream
/external/v8/src/
H A Disolate.h1541 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 Dasan_report.cc636 if (lock_.TryLock()) {

Completed in 411 milliseconds