Home
last modified time | relevance | path

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

/ndk/sources/cxx-stl/llvm-libc++/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++/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++/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++/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_for.pass.cpp35 assert(m.try_lock()); in f1()
Dtry_lock_until.pass.cpp35 assert(m.try_lock()); in f1()
/ndk/sources/cxx-stl/llvm-libc++/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++/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++/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&...);
204 bool try_lock() _NOEXCEPT;
227 bool try_lock() _NOEXCEPT;
270 bool try_lock() _NOEXCEPT;
308 try_lock(_L0& __l0, _L1& __l1)
[all …]
D__mutex_base54 bool try_lock() _NOEXCEPT;
124 : __m_(&__m), __owns_(__m.try_lock()) {}
189 bool try_lock();
236 unique_lock<_Mutex>::try_lock()
239 __throw_system_error(EPERM, "unique_lock::try_lock: references null mutex");
241 __throw_system_error(EDEADLK, "unique_lock::try_lock: already locked");
242 __owns_ = __m_->try_lock();
/ndk/sources/cxx-stl/llvm-libc++/src/
Dmutex.cpp36 mutex::try_lock() _NOEXCEPT in try_lock() function in mutex
101 recursive_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_mutex
128 timed_mutex::try_lock() _NOEXCEPT in try_lock() function in timed_mutex
179 recursive_timed_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_timed_mutex
Dmemory.cpp137 while (!m.try_lock()) in lock()