Home
last modified time | relevance | path

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

/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/
Dtry_lock.pass.cpp27 bool try_lock() in try_lock() function in L0
45 bool try_lock() in try_lock() function in L1
63 bool try_lock() in try_lock() function in L2
79 assert(std::try_lock(l0, l1) == -1); in main()
86 assert(std::try_lock(l0, l1) == 1); in main()
93 assert(std::try_lock(l0, l1) == 0); in main()
102 std::try_lock(l0, l1); in main()
116 std::try_lock(l0, l1); in main()
130 assert(std::try_lock(l0, l1, l2) == -1); in main()
139 assert(std::try_lock(l0, l1, l2) == 0); in main()
[all …]
Dlock.pass.cpp32 bool try_lock() in try_lock() function in L0
55 bool try_lock() in try_lock() function in L1
78 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.cpp25 bool try_lock() in try_lock() function
38 assert(lk.try_lock() == true); in main()
43 lk.try_lock(); in main()
51 assert(lk.try_lock() == false); in main()
57 lk.try_lock(); in main()
/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.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.lock/thread.lock.shared/thread.lock.shared.locking/
Dtry_lock.pass.cpp43 assert(lk.try_lock() == true); in main()
48 lk.try_lock(); in main()
56 assert(lk.try_lock() == false); in main()
62 lk.try_lock(); in main()
/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.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.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/
Dtry_lock.pass.cpp36 assert(!m.try_lock()); in f()
37 assert(!m.try_lock()); in f()
38 assert(!m.try_lock()); in f()
39 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;
135 bool try_lock();
156 int try_lock(L1&, L2&, L3&...);
207 bool try_lock() _NOEXCEPT;
230 bool try_lock() _NOEXCEPT;
273 bool try_lock() _NOEXCEPT;
311 try_lock(_L0& __l0, _L1& __l1)
[all …]
Dshared_mutex33 bool try_lock();
79 bool try_lock();
139 bool try_lock();
318 bool try_lock();
367 shared_lock<_Mutex>::try_lock()
370 __throw_system_error(EPERM, "shared_lock::try_lock: references null mutex");
372 __throw_system_error(EDEADLK, "shared_lock::try_lock: already locked");
D__mutex_base46 bool try_lock() _NOEXCEPT;
116 : __m_(&__m), __owns_(__m.try_lock()) {}
160 bool try_lock();
207 unique_lock<_Mutex>::try_lock()
210 __throw_system_error(EPERM, "unique_lock::try_lock: references null mutex");
212 __throw_system_error(EDEADLK, "unique_lock::try_lock: already locked");
213 __owns_ = __m_->try_lock();
/external/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.cpp37 shared_timed_mutex::try_lock() in try_lock() function in shared_timed_mutex
Dmemory.cpp147 while (!m.try_lock()) in lock()
/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
70 bool try_lock() { return 0 == pthread_spin_trylock(&mu_); } in try_lock() function in PthreadSpinLock
91 bool try_lock() { return 0 == pthread_rwlock_trywrlock(&mu_); } in try_lock() function in PthreadRWLock
142 return locks_[i]->try_lock(); in T()
/external/llvm/include/llvm/Support/
DMutex.h124 bool try_lock() { in try_lock() function
/external/llvm/unittests/IR/
DValueMapTest.cpp189 EXPECT_FALSE(Data.M->try_lock()) << "Mutex should already be locked."; in onRAUW()
193 EXPECT_FALSE(Data.M->try_lock()) << "Mutex should already be locked."; in onDelete()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_mutex.cc143 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec, bool try_lock) { in MutexLock() argument
173 if (!try_lock) in MutexLock()
175 ctx->dd->MutexAfterLock(&cb, &s->dd, true, try_lock); in MutexLock()
Dtsan_rtl.h682 bool try_lock = false);
684 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr, bool try_lock = false);