/external/chromium_org/chrome/common/ |
H A D | multi_process_lock.h | 27 virtual bool TryLock() = 0;
|
H A D | multi_process_lock_unittest.cc | 102 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 D | multi_process_lock_mac.cc | 23 virtual bool TryLock() OVERRIDE {
|
H A D | multi_process_lock_win.cc | 21 virtual bool TryLock() { function in class:MultiProcessLockWin
|
H A D | multi_process_lock_linux.cc | 27 virtual bool TryLock() OVERRIDE {
|
/external/lldb/include/lldb/Host/ |
H A D | Mutex.h | 118 /// 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 D | filelock_unittest.cc | 33 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 D | filelock.cc | 42 FileLock* FileLock::TryLock(const std::string& path) { function in class:rtc::FileLock 49 ok = stream->Open(path, "a", NULL) && stream->TryLock();
|
H A D | filelock.h | 36 static FileLock* TryLock(const std::string& path);
|
/external/chromium_org/mojo/public/cpp/utility/ |
H A D | mutex.h | 34 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 D | mutex-unittest.cc | 73 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 D | mutex.h | 28 // 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 D | mutex.cc | 139 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 D | mutex_unittest.cc | 26 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 D | mutex.h | 41 // 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 D | mutex.h | 43 // 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 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 | 43 bool TryLock(); 99 bool TryLock(const Mutex &m);
|
/external/chromium_org/mojo/public/cpp/utility/lib/ |
H A D | mutex.cc | 41 bool Mutex::TryLock() { function in class:mojo::Mutex
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
H A D | simple_mutex.h | 48 // 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 D | spinlock.h | 82 // 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 D | simple_mutex.h | 48 // 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 D | Mutex.cpp | 166 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 D | SBFrame.cpp | 123 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...] |