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

123

/external/chromium_org/chrome/common/
H A Dmulti_process_lock.h27 virtual bool TryLock() = 0;
H A Dmulti_process_lock_unittest.cc102 EXPECT_FALSE(test_lock->TryLock());
108 EXPECT_TRUE(test_lock->TryLock());
117 EXPECT_TRUE(test_lock->TryLock());
121 EXPECT_TRUE(test_lock->TryLock());
137 EXPECT_TRUE(test_lock->TryLock());
158 EXPECT_FALSE(test_lock->TryLock());
169 EXPECT_TRUE(test_lock->TryLock());
H A Dmulti_process_lock_mac.cc23 virtual bool TryLock() OVERRIDE {
H A Dmulti_process_lock_win.cc21 virtual bool TryLock() { function in class:MultiProcessLockWin
H A Dmulti_process_lock_linux.cc27 virtual bool TryLock() OVERRIDE {
/external/lldb/include/lldb/Host/
H A DMutex.h118 /// unlock it when it goes out of scope or Reset or TryLock are
128 TryLock (Mutex &mutex, const char *failure_message = NULL);
131 TryLock (Mutex *mutex, const char *failure_message = NULL) function in class:lldb_private::Mutex::Locker
134 return TryLock(*mutex, failure_message);
206 /// If the mutex is already locked, TryLock() will not block waiting
216 TryLock(const char *failure_message = NULL);
271 TryLock (const char *failure_message = NULL) function in class:lldb_private::TrackingMutex
273 int return_value = Mutex::TryLock();
303 TryLock (const char *failure_message = NULL);
/external/chromium_org/third_party/webrtc/base/
H A Dfilelock_unittest.cc33 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname()));
35 // this test, therefore the TryLock(...) call should fail.
60 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname()));
68 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname()));
73 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname()));
76 scoped_ptr<FileLock> lock2(FileLock::TryLock(temp_file_.pathname()));
81 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname()));
H A Dfilelock.cc42 FileLock* FileLock::TryLock(const std::string& path) { function in class:rtc::FileLock
49 ok = stream->Open(path, "a", NULL) && stream->TryLock();
H A Dfilelock.h36 static FileLock* TryLock(const std::string& path);
/external/chromium_org/mojo/public/cpp/utility/
H A Dmutex.h34 bool TryLock() { return pthread_mutex_trylock(&mutex_) == 0; } function in class:mojo::Mutex
43 bool TryLock();
/external/chromium_org/v8/src/base/platform/
H A Dmutex-unittest.cc73 EXPECT_TRUE(recursive_mutex1.TryLock());
74 EXPECT_TRUE(recursive_mutex2.TryLock());
81 EXPECT_TRUE(recursive_mutex1.TryLock());
83 EXPECT_TRUE(recursive_mutex2.TryLock());
H A Dmutex.h28 // 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;
H A Dmutex.cc139 bool Mutex::TryLock() { function in class:v8::base::Mutex
180 bool RecursiveMutex::TryLock() { function in class:v8::base::RecursiveMutex
/external/chromium_org/mojo/public/cpp/utility/tests/
H A Dmutex_unittest.cc26 EXPECT_TRUE(mutex.TryLock());
35 EXPECT_TRUE(mutex.TryLock());
71 if (mutex_->TryLock()) {
174 try_lock_succeeded_ = mutex_->TryLock();
188 TEST(MutexTest, TryLock) {
191 // |TryLock()| should succeed -- we don't have the lock.
200 ASSERT_TRUE(mutex.TryLock());
250 mutex.TryLock();
/external/ceres-solver/internal/ceres/
H A Dmutex.h41 // 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; } function in class:ceres::internal::Mutex
221 bool Mutex::TryLock() { return is_safe_ ? function in class:ceres::internal::Mutex
241 bool Mutex::TryLock() { return is_safe_ ? function in class:ceres::internal::Mutex
263 bool Mutex::TryLock() { retur function in class:ceres::internal::Mutex
[all...]
/external/chromium_org/third_party/re2/util/
H A Dmutex.h43 // lines, and change TryLock() to assert(0) or something.
64 inline bool TryLock(); // If free, Lock() and return true, else return false
103 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } function in class:re2::Mutex
116 bool Mutex::TryLock() { return pthread_rwlock_trywrlock(&mutex_) == 0; } function in class:re2::Mutex
131 bool Mutex::TryLock() { return pthread_mutex_trylock(&mutex_) == 0; } function in class:re2::Mutex
142 bool Mutex::TryLock() { return TryEnterCriticalSection(&mutex_) != 0; } function in class:re2::Mutex
/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.h43 bool TryLock();
99 bool TryLock(const Mutex &m);
/external/chromium_org/mojo/public/cpp/utility/lib/
H A Dmutex.cc41 bool Mutex::TryLock() { function in class:mojo::Mutex
/external/chromium_org/third_party/tcmalloc/chromium/src/base/
H A Dsimple_mutex.h48 // NOTE: TryLock() is broken for NO_THREADS mode, at least in NDEBUG
117 // lines, and change TryLock() to assert(0) or something.
166 inline bool TryLock(); // If free, Lock() and return true, else return false
212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } function in class:MUTEX_NAMESPACE::Mutex
229 bool Mutex::TryLock() { return is_safe_ ? function in class:MUTEX_NAMESPACE::Mutex
251 bool Mutex::TryLock() { return is_safe_ ? function in class:MUTEX_NAMESPACE::Mutex
274 bool Mutex::TryLock() { return is_safe_ ? function in class:MUTEX_NAMESPACE::Mutex
H A Dspinlock.h82 // returned. If this SpinLock is free at the time of the call, TryLock
84 inline bool TryLock() EXCLUSIVE_TRYLOCK_FUNCTION(true) {
/external/chromium_org/third_party/tcmalloc/vendor/src/base/
H A Dsimple_mutex.h48 // NOTE: TryLock() is broken for NO_THREADS mode, at least in NDEBUG
117 // lines, and change TryLock() to assert(0) or something.
166 inline bool TryLock(); // If free, Lock() and return true, else return false
212 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } function in class:MUTEX_NAMESPACE::Mutex
229 bool Mutex::TryLock() { return is_safe_ ? function in class:MUTEX_NAMESPACE::Mutex
251 bool Mutex::TryLock() { return is_safe_ ? function in class:MUTEX_NAMESPACE::Mutex
274 bool Mutex::TryLock() { return is_safe_ ? function in class:MUTEX_NAMESPACE::Mutex
/external/lldb/source/Host/common/
H A DMutex.cpp166 Mutex::Locker::TryLock (Mutex &mutex, const char *failure_message) function in class:Mutex::Locker
174 if (mutex.TryLock(failure_message) == 0)
297 // If the mutex is already locked, TryLock() will not block waiting
304 Mutex::TryLock(const char *failure_message) function in class:Mutex
378 LoggingMutex::TryLock (const char *failure_message) function in class:LoggingMutex
381 int x = Mutex::TryLock(failure_message);
/external/lldb/source/API/
H A DSBFrame.cpp123 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(
[all...]

Completed in 1322 milliseconds

123