Home
last modified time | relevance | path

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

12

/external/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 …]
DAndroid.mk23 test_name := thread/thread.mutex/thread.lock.algorithm/try_lock
24 test_src := try_lock.pass.cpp
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
/external/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()
DAndroid.mk35 test_name := thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/try_lock
36 test_src := try_lock.pass.cpp
/external/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()
DAndroid.mk35 …mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.recursive/try_lock
36 test_src := try_lock.pass.cpp
Dtry_lock_until.pass.cpp35 assert(m.try_lock()); in f1()
Dtry_lock_for.pass.cpp35 assert(m.try_lock()); in f1()
/external/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()
DAndroid.mk31 …ead.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.recursive/try_lock
32 test_src := try_lock.pass.cpp
/external/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()
DAndroid.mk35 test_name := thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/try_lock
36 test_src := try_lock.pass.cpp
/external/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()
DAndroid.mk31 …/thread.mutex/thread.mutex.requirements/thread.mutex.requirements.mutex/thread.mutex.class/try_lock
32 test_src := try_lock.pass.cpp
/external/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()
DAndroid.mk35 …ead.mutex/thread.mutex.requirements/thread.timedmutex.requirements/thread.timedmutex.class/try_lock
36 test_src := try_lock.pass.cpp
/external/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()
DAndroid.mk51 …read.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock
52 test_src := try_lock.pass.cpp
/external/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&...);
204 bool try_lock() _NOEXCEPT;
227 bool try_lock() _NOEXCEPT;
270 bool try_lock() _NOEXCEPT;
308 try_lock(_L0& __l0, _L1& __l1)
[all …]
Dshared_mutex33 bool try_lock();
79 bool try_lock();
135 bool try_lock();
314 bool try_lock();
363 shared_lock<_Mutex>::try_lock()
366 __throw_system_error(EPERM, "shared_lock::try_lock: references null mutex");
368 __throw_system_error(EDEADLK, "shared_lock::try_lock: already locked");
D__mutex_base44 bool try_lock() _NOEXCEPT;
114 : __m_(&__m), __owns_(__m.try_lock()) {}
158 bool try_lock();
205 unique_lock<_Mutex>::try_lock()
208 __throw_system_error(EPERM, "unique_lock::try_lock: references null mutex");
210 __throw_system_error(EDEADLK, "unique_lock::try_lock: already locked");
211 __owns_ = __m_->try_lock();
/external/libcxx/src/
Dmutex.cpp36 mutex::try_lock() _NOEXCEPT in try_lock() function in mutex
104 recursive_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_mutex
131 timed_mutex::try_lock() _NOEXCEPT in try_lock() function in timed_mutex
182 recursive_timed_mutex::try_lock() _NOEXCEPT in try_lock() function in recursive_timed_mutex
Dshared_mutex.cpp34 shared_timed_mutex::try_lock() in try_lock() function in shared_timed_mutex
/external/compiler-rt/test/tsan/
Ddeadlock_detector_stress_test.cc46 bool try_lock() { return 0 == pthread_mutex_trylock(&mu_); } in try_lock() function in PthreadMutex
73 bool try_lock() { return 0 == pthread_spin_trylock(&mu_); } in try_lock() function in PthreadSpinLock
94 bool try_lock() { return 0 == pthread_rwlock_trywrlock(&mu_); } in try_lock() function in PthreadRWLock
145 return locks_[i]->try_lock(); in T()

12