Home
last modified time | relevance | path

Searched refs:try_lock (Results 1 – 25 of 32) sorted by relevance

12

/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/
Dtry_lock.pass.cpp29 bool try_lock() in try_lock() function in L0
47 bool try_lock() in try_lock() function in L1
65 bool try_lock() in try_lock() function in L2
81 assert(std::try_lock(l0, l1) == -1); in main()
88 assert(std::try_lock(l0, l1) == 1); in main()
95 assert(std::try_lock(l0, l1) == 0); in main()
105 (void)std::try_lock(l0, l1); in main()
119 (void)std::try_lock(l0, l1); in main()
134 assert(std::try_lock(l0, l1, l2) == -1); in main()
143 assert(std::try_lock(l0, l1, l2) == 0); in main()
[all …]
Dlock.pass.cpp39 bool try_lock() in try_lock() function in L0
62 bool try_lock() in try_lock() function in L1
85 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/
Dtry_lock.pass.cpp27 bool try_lock() in try_lock() function
40 assert(lk.try_lock() == true); in main()
46 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
55 assert(lk.try_lock() == false); in main()
62 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
Dtry_lock.pass.cpp34 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()
Dtry_lock_for.pass.cpp37 assert(m.try_lock()); in f1()
Dtry_lock_until.pass.cpp37 assert(m.try_lock()); in f1()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/
Dtry_lock.pass.cpp34 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.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock.pass.cpp41 assert(lk.try_lock() == true); in main()
47 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
56 assert(lk.try_lock() == false); in main()
63 TEST_IGNORE_NODISCARD lk.try_lock(); in main()
/external/libcxx/include/
Dmutex30 bool try_lock();
47 bool try_lock() noexcept;
64 bool try_lock();
82 bool try_lock() noexcept;
150 bool try_lock();
171 int try_lock(L1&, L2&, L3&...);
225 bool try_lock() _NOEXCEPT;
249 bool try_lock() _NOEXCEPT;
293 bool try_lock() _NOEXCEPT;
332 try_lock(_L0& __l0, _L1& __l1)
[all …]
Dshared_mutex33 bool try_lock();
56 bool try_lock();
102 bool try_lock();
164 bool try_lock();
190 _LIBCPP_INLINE_VISIBILITY bool try_lock() { return __base.try_lock(); }
216 bool try_lock();
398 bool try_lock();
447 shared_lock<_Mutex>::try_lock()
450 __throw_system_error(EPERM, "shared_lock::try_lock: references null mutex");
452 __throw_system_error(EDEADLK, "shared_lock::try_lock: already locked");
D__mutex_base63 bool try_lock() _NOEXCEPT _LIBCPP_THREAD_SAFETY_ANNOTATION(try_acquire_capability(true));
137 : __m_(_VSTD::addressof(__m)), __owns_(__m.try_lock()) {}
181 bool try_lock();
228 unique_lock<_Mutex>::try_lock()
231 __throw_system_error(EPERM, "unique_lock::try_lock: references null mutex");
233 __throw_system_error(EDEADLK, "unique_lock::try_lock: already locked");
234 __owns_ = __m_->try_lock();
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
Dtry_lock.pass.cpp34 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/
Dtry_lock.pass.cpp35 assert(!m.try_lock()); in f()
36 assert(!m.try_lock()); in f()
37 assert(!m.try_lock()); in f()
38 while(!m.try_lock()) in f()
/external/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/
Dtry_lock.pass.cpp34 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.shared_mutex.requirements/thread.shared_mutex.class/
Dtry_lock.pass.cpp35 assert(!m.try_lock()); in f()
36 assert(!m.try_lock()); in f()
37 assert(!m.try_lock()); in f()
38 while(!m.try_lock()) in f()
/external/libcxx/src/
Dmutex.cpp38 mutex::try_lock() _NOEXCEPT in try_lock() function in mutex
84 recursive_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_mutex
111 timed_mutex::try_lock() _NOEXCEPT in try_lock() function in timed_mutex
162 recursive_timed_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_timed_mutex
Dshared_mutex.cpp38 __shared_mutex_base::try_lock() in try_lock() function in __shared_mutex_base
109 bool shared_timed_mutex::try_lock() { return __base.try_lock(); } in try_lock() function in shared_timed_mutex
/external/compiler-rt/test/tsan/
Ddeadlock_detector_stress_test.cc43 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); } in try_lock() function in PthreadMutex
71 bool try_lock() { return 0 == pthread_spin_trylock(&mu_); } in try_lock() function in PthreadSpinLock
95 bool try_lock() { return 0 == pthread_rwlock_trywrlock(&mu_); } in try_lock() function in PthreadRWLock
146 return locks_[i]->try_lock(); in T()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.scoped/
Dmutex.pass.cpp29 bool try_lock() { if (locked) return false; locked = true; return true; } in try_lock() function
52 bool try_lock() { in try_lock() function
Dadopt_lock.pass.cpp28 bool try_lock() { if (locked) return false; locked = true; return true; } in try_lock() function
/external/tensorflow/tensorflow/core/platform/default/
Dmutex.h47 bool try_lock() EXCLUSIVE_TRYLOCK_FUNCTION(true) { in try_lock() function
74 if (!mu.try_lock()) { in mutex_lock()
/external/llvm/include/llvm/Support/
DMutex.h126 bool try_lock() { in try_lock() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMutex.h126 bool try_lock() { in try_lock() function
/external/skia/src/core/
DSkTaskGroup2D.cpp63 if (rowData.fMutex.try_lock()) { in work()
/external/skqp/src/core/
DSkTaskGroup2D.cpp67 if (rowData.fMutex.try_lock()) { in work()

12