/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 27 bool try_lock() in try_lock() function in L0 45 bool try_lock() in try_lock() function in L1 63 bool try_lock() in try_lock() function in L2 79 assert(std::try_lock(l0, l1) == -1); in main() 86 assert(std::try_lock(l0, l1) == 1); in main() 93 assert(std::try_lock(l0, l1) == 0); in main() 102 std::try_lock(l0, l1); in main() 116 std::try_lock(l0, l1); in main() 130 assert(std::try_lock(l0, l1, l2) == -1); in main() 139 assert(std::try_lock(l0, l1, l2) == 0); in main() [all …]
|
D | lock.pass.cpp | 32 bool try_lock() in try_lock() function in L0 55 bool try_lock() in try_lock() function in L1 78 bool try_lock() in try_lock() function in L2
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/ |
D | try_lock.pass.cpp | 25 bool try_lock() in try_lock() function 38 assert(lk.try_lock() == true); in main() 43 lk.try_lock(); in main() 51 assert(lk.try_lock() == false); in main() 57 lk.try_lock(); in main()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f() 40 assert(m.try_lock()); in f()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f() 40 assert(m.try_lock()); in f()
|
D | try_lock_for.pass.cpp | 37 assert(m.try_lock()); in f1()
|
D | try_lock_until.pass.cpp | 37 assert(m.try_lock()); in f1()
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/ |
D | try_lock.pass.cpp | 43 assert(lk.try_lock() == true); in main() 48 lk.try_lock(); in main() 56 assert(lk.try_lock() == false); in main() 62 lk.try_lock(); in main()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/ |
D | try_lock.pass.cpp | 34 assert(!m.try_lock()); in f() 35 assert(!m.try_lock()); in f() 36 assert(!m.try_lock()); in f() 37 while(!m.try_lock()) in f()
|
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/ |
D | try_lock.pass.cpp | 36 assert(!m.try_lock()); in f() 37 assert(!m.try_lock()); in f() 38 assert(!m.try_lock()); in f() 39 while(!m.try_lock()) in f()
|
/external/libcxx/include/ |
D | mutex | 30 bool try_lock(); 47 bool try_lock() noexcept; 64 bool try_lock(); 82 bool try_lock() noexcept; 135 bool try_lock(); 156 int try_lock(L1&, L2&, L3&...); 207 bool try_lock() _NOEXCEPT; 230 bool try_lock() _NOEXCEPT; 273 bool try_lock() _NOEXCEPT; 311 try_lock(_L0& __l0, _L1& __l1) [all …]
|
D | shared_mutex | 33 bool try_lock(); 79 bool try_lock(); 139 bool try_lock(); 318 bool try_lock(); 367 shared_lock<_Mutex>::try_lock() 370 __throw_system_error(EPERM, "shared_lock::try_lock: references null mutex"); 372 __throw_system_error(EDEADLK, "shared_lock::try_lock: already locked");
|
D | __mutex_base | 46 bool try_lock() _NOEXCEPT; 116 : __m_(&__m), __owns_(__m.try_lock()) {} 160 bool try_lock(); 207 unique_lock<_Mutex>::try_lock() 210 __throw_system_error(EPERM, "unique_lock::try_lock: references null mutex"); 212 __throw_system_error(EDEADLK, "unique_lock::try_lock: already locked"); 213 __owns_ = __m_->try_lock();
|
/external/libcxx/src/ |
D | mutex.cpp | 37 mutex::try_lock() _NOEXCEPT in try_lock() function in mutex 105 recursive_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_mutex 132 timed_mutex::try_lock() _NOEXCEPT in try_lock() function in timed_mutex 183 recursive_timed_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_timed_mutex
|
D | shared_mutex.cpp | 37 shared_timed_mutex::try_lock() in try_lock() function in shared_timed_mutex
|
D | memory.cpp | 147 while (!m.try_lock()) in lock()
|
/external/compiler-rt/test/tsan/ |
D | deadlock_detector_stress_test.cc | 43 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); } in try_lock() function in PthreadMutex 70 bool try_lock() { return 0 == pthread_spin_trylock(&mu_); } in try_lock() function in PthreadSpinLock 91 bool try_lock() { return 0 == pthread_rwlock_trywrlock(&mu_); } in try_lock() function in PthreadRWLock 142 return locks_[i]->try_lock(); in T()
|
/external/llvm/include/llvm/Support/ |
D | Mutex.h | 124 bool try_lock() { in try_lock() function
|
/external/llvm/unittests/IR/ |
D | ValueMapTest.cpp | 189 EXPECT_FALSE(Data.M->try_lock()) << "Mutex should already be locked."; in onRAUW() 193 EXPECT_FALSE(Data.M->try_lock()) << "Mutex should already be locked."; in onDelete()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl_mutex.cc | 143 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec, bool try_lock) { in MutexLock() argument 173 if (!try_lock) in MutexLock() 175 ctx->dd->MutexAfterLock(&cb, &s->dd, true, try_lock); in MutexLock()
|
D | tsan_rtl.h | 682 bool try_lock = false); 684 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr, bool try_lock = false);
|