Home
last modified time | relevance | path

Searched refs:try_lock (Results 1 – 25 of 34) 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/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.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.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/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/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&...);
226 bool try_lock() _NOEXCEPT;
250 bool try_lock() _NOEXCEPT;
294 bool try_lock() _NOEXCEPT;
333 try_lock(_L0& __l0, _L1& __l1)
[all …]
Dshared_mutex33 bool try_lock();
56 bool try_lock();
102 bool try_lock();
166 bool try_lock() _LIBCPP_THREAD_SAFETY_ANNOTATION(try_acquire_capability(true));
192 _LIBCPP_INLINE_VISIBILITY bool try_lock() { return __base.try_lock(); }
218 bool try_lock();
400 bool try_lock();
449 shared_lock<_Mutex>::try_lock()
452 __throw_system_error(EPERM, "shared_lock::try_lock: references null mutex");
454 __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/src/
Dmutex.cpp37 mutex::try_lock() _NOEXCEPT in try_lock() function in mutex
83 recursive_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_mutex
110 timed_mutex::try_lock() _NOEXCEPT in try_lock() function in timed_mutex
161 recursive_timed_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_timed_mutex
Dshared_mutex.cpp37 __shared_mutex_base::try_lock() in try_lock() function in __shared_mutex_base
108 bool shared_timed_mutex::try_lock() { return __base.try_lock(); } in try_lock() function in shared_timed_mutex
/external/tensorflow/tensorflow/core/platform/default/
Dmutex.h46 bool try_lock() EXCLUSIVE_TRYLOCK_FUNCTION(true);
73 if (!mu.try_lock()) { in mutex_lock()
Dmutex.cc40 bool mutex::try_lock() { return nsync::nsync_mu_trylock(mu_cast(&mu_)) != 0; }; in try_lock() function in tensorflow::mutex
/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/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMutex.h127 bool try_lock() { in try_lock() function
/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

12