Home
last modified time | relevance | path

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

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock.algorithm/
Dtry_lock.pass.cpp25 bool try_lock() in try_lock() function in L0
43 bool try_lock() in try_lock() function in L1
61 bool try_lock() in try_lock() function in L2
77 assert(std::try_lock(l0, l1) == -1); in main()
84 assert(std::try_lock(l0, l1) == 1); in main()
91 assert(std::try_lock(l0, l1) == 0); in main()
100 std::try_lock(l0, l1); in main()
114 std::try_lock(l0, l1); in main()
128 assert(std::try_lock(l0, l1, l2) == -1); in main()
137 assert(std::try_lock(l0, l1, l2) == 0); in main()
[all …]
Dlock.pass.cpp30 bool try_lock() in try_lock() function in L0
53 bool try_lock() in try_lock() function in L1
76 bool try_lock() in try_lock() function in L2
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
Dtry_lock.pass.cpp23 bool try_lock() in try_lock() function
36 assert(lk.try_lock() == true); in main()
41 lk.try_lock(); in main()
49 assert(lk.try_lock() == false); in main()
55 lk.try_lock(); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/
Dtry_lock.pass.cpp32 assert(!m.try_lock()); in f()
33 assert(!m.try_lock()); in f()
34 assert(!m.try_lock()); in f()
35 while(!m.try_lock()) in f()
38 assert(m.try_lock()); in f()
Dtry_lock_until.pass.cpp35 assert(m.try_lock()); in f1()
Dtry_lock_for.pass.cpp35 assert(m.try_lock()); in f1()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/
Dtry_lock.pass.cpp32 assert(!m.try_lock()); in f()
33 assert(!m.try_lock()); in f()
34 assert(!m.try_lock()); in f()
35 while(!m.try_lock()) in f()
38 assert(m.try_lock()); in f()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock.pass.cpp41 assert(lk.try_lock() == true); in main()
46 lk.try_lock(); in main()
54 assert(lk.try_lock() == false); in main()
60 lk.try_lock(); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/
Dtry_lock.pass.cpp32 assert(!m.try_lock()); in f()
33 assert(!m.try_lock()); in f()
34 assert(!m.try_lock()); in f()
35 while(!m.try_lock()) in f()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/
Dtry_lock.pass.cpp32 assert(!m.try_lock()); in f()
33 assert(!m.try_lock()); in f()
34 assert(!m.try_lock()); in f()
35 while(!m.try_lock()) in f()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.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()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dmutex30 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&...);
206 bool try_lock() _NOEXCEPT;
229 bool try_lock() _NOEXCEPT;
272 bool try_lock() _NOEXCEPT;
310 try_lock(_L0& __l0, _L1& __l1)
[all …]
Dshared_mutex33 bool try_lock();
79 bool try_lock();
137 bool try_lock();
316 bool try_lock();
365 shared_lock<_Mutex>::try_lock()
368 __throw_system_error(EPERM, "shared_lock::try_lock: references null mutex");
370 __throw_system_error(EDEADLK, "shared_lock::try_lock: already locked");
D__mutex_base47 bool try_lock() _NOEXCEPT;
118 : __m_(&__m), __owns_(__m.try_lock()) {}
162 bool try_lock();
209 unique_lock<_Mutex>::try_lock()
212 __throw_system_error(EPERM, "unique_lock::try_lock: references null mutex");
214 __throw_system_error(EDEADLK, "unique_lock::try_lock: already locked");
215 __owns_ = __m_->try_lock();
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/smart_ptr/detail/
Dspinlock_sync.hpp38 bool try_lock() in try_lock() function in boost::detail::spinlock
46 for( unsigned k = 0; !try_lock(); ++k ) in lock()
Dspinlock_pt.hpp34 bool try_lock() in try_lock() function in boost::detail::spinlock
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
Dmutex.cpp37 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
Dshared_mutex.cpp36 shared_timed_mutex::try_lock() in try_lock() function in shared_timed_mutex
Dmemory.cpp145 while (!m.try_lock()) in lock()
/ndk/tests/device/test-libc++-shared-full/jni/
DAndroid.mk3734 $(call gen-test, thread/thread.mutex/thread.lock.algorithm/try_lock)
3749 …l gen-test, thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/try_lock)
3770 …l gen-test, thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/try_lock)
3787 …thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/try_lock)
3791 …ad.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/try_lock)
3797 …irements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock) # path-change
3806 …ad.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock)
3811 …utex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock)
/ndk/tests/device/test-libc++-static-full/jni/
DAndroid.mk3725 $(call gen-test, thread/thread.mutex/thread.lock.algorithm/try_lock)
3740 …l gen-test, thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/try_lock)
3761 …l gen-test, thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/try_lock)
3778 …thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/try_lock)
3782 …ad.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/try_lock)
3788 …irements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock) # path-change
3797 …ad.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock)
3802 …utex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock)