Home
last modified time | relevance | path

Searched refs:unique_lock (Results 1 – 25 of 61) sorted by relevance

123

/external/libcxx/include/
D__mutex_base96 class _LIBCPP_TYPE_VIS_ONLY unique_lock
107 unique_lock() _NOEXCEPT : __m_(nullptr), __owns_(false) {}
109 explicit unique_lock(mutex_type& __m)
112 unique_lock(mutex_type& __m, defer_lock_t) _NOEXCEPT
115 unique_lock(mutex_type& __m, try_to_lock_t)
118 unique_lock(mutex_type& __m, adopt_lock_t)
122 unique_lock(mutex_type& __m, const chrono::time_point<_Clock, _Duration>& __t)
126 unique_lock(mutex_type& __m, const chrono::duration<_Rep, _Period>& __d)
129 ~unique_lock()
136 unique_lock(unique_lock const&); // = delete;
[all …]
Dmutex113 class unique_lock
117 unique_lock() noexcept;
118 explicit unique_lock(mutex_type& m);
119 unique_lock(mutex_type& m, defer_lock_t) noexcept;
120 unique_lock(mutex_type& m, try_to_lock_t);
121 unique_lock(mutex_type& m, adopt_lock_t);
123 unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
125 unique_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time);
126 ~unique_lock();
128 unique_lock(unique_lock const&) = delete;
[all …]
Dcondition_variable34 void wait(unique_lock<mutex>& lock);
36 void wait(unique_lock<mutex>& lock, Predicate pred);
40 wait_until(unique_lock<mutex>& lock,
45 wait_until(unique_lock<mutex>& lock,
51 wait_for(unique_lock<mutex>& lock,
56 wait_for(unique_lock<mutex>& lock,
64 void notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
191 unique_lock<mutex> __lk(*__mut);
194 lock_guard<unique_lock<mutex> > __lx(__lk, adopt_lock);
213 unique_lock<mutex> __lk(*__mut);
[all …]
/external/llvm/include/llvm/Support/
DUniqueLock.h28 class unique_lock {
32 unique_lock(const unique_lock &) = delete;
33 void operator=(const unique_lock &) = delete;
35 unique_lock() : M(nullptr), locked(false) {} in unique_lock() function
36 explicit unique_lock(MutexT &m) : M(&m), locked(true) { M->lock(); } in unique_lock() function
38 void operator=(unique_lock &&o) {
47 ~unique_lock() { if (owns_lock()) M->unlock(); } in ~unique_lock()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
Dnotify_one.pass.cpp32 std::unique_lock<std::mutex> lk(mut); in f1()
42 std::unique_lock<std::mutex> lk(mut); in f2()
56 std::unique_lock<std::mutex>lk(mut); in main()
63 std::unique_lock<std::mutex>lk(mut); in main()
80 std::unique_lock<std::mutex>lk(mut); in main()
Dnotify_all.pass.cpp32 std::unique_lock<std::mutex> lk(mut); in f1()
42 std::unique_lock<std::mutex> lk(mut); in f2()
56 std::unique_lock<std::mutex>lk(mut); in main()
63 std::unique_lock<std::mutex>lk(mut); in main()
Dwait_for.pass.cpp39 std::unique_lock<std::mutex> lk(mut); in f()
64 std::unique_lock<std::mutex>lk(mut); in main()
78 std::unique_lock<std::mutex>lk(mut); in main()
Dwait_for_pred.pass.cpp49 std::unique_lock<std::mutex> lk(mut); in f()
72 std::unique_lock<std::mutex>lk(mut); in main()
86 std::unique_lock<std::mutex>lk(mut); in main()
Dwait_until.pass.cpp54 std::unique_lock<std::mutex> lk(mut); in f()
79 std::unique_lock<std::mutex>lk(mut); in main()
93 std::unique_lock<std::mutex>lk(mut); in main()
Dwait_until_pred.pass.cpp64 std::unique_lock<std::mutex> lk(mut); in f()
90 std::unique_lock<std::mutex>lk(mut); in main()
104 std::unique_lock<std::mutex>lk(mut); in main()
/external/llvm/lib/Support/
DThreadPool.cpp36 std::unique_lock<std::mutex> LockGuard(QueueLock); in ThreadPool()
50 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool()
64 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool()
77 std::unique_lock<std::mutex> LockGuard(CompletionLock); in wait()
88 std::unique_lock<std::mutex> LockGuard(QueueLock); in asyncImpl()
102 std::unique_lock<std::mutex> LockGuard(QueueLock); in ~ThreadPool()
/external/libcxx/src/
Dfuture.cpp94 unique_lock<mutex> __lk(__mut_); in set_value()
106 unique_lock<mutex> __lk(__mut_); in set_value_at_thread_exit()
118 unique_lock<mutex> __lk(__mut_); in set_exception()
131 unique_lock<mutex> __lk(__mut_); in set_exception_at_thread_exit()
143 unique_lock<mutex> __lk(__mut_); in __make_ready()
151 unique_lock<mutex> __lk(__mut_); in copy()
160 unique_lock<mutex> __lk(__mut_); in wait()
165 __assoc_sub_state::__sub_wait(unique_lock<mutex>& __lk) in __sub_wait()
Dshared_mutex.cpp29 unique_lock<mutex> lk(__mut_); in lock()
40 unique_lock<mutex> lk(__mut_); in try_lock()
62 unique_lock<mutex> lk(__mut_); in lock_shared()
73 unique_lock<mutex> lk(__mut_); in try_lock_shared()
Dmutex.cpp126 unique_lock<mutex> lk(__m_); in lock()
135 unique_lock<mutex> lk(__m_, try_to_lock); in try_lock()
169 unique_lock<mutex> lk(__m_); in lock()
187 unique_lock<mutex> lk(__m_, try_to_lock); in try_lock()
202 unique_lock<mutex> lk(__m_); in unlock()
Dcondition_variable.cpp39 condition_variable::wait(unique_lock<mutex>& lk) _NOEXCEPT in wait()
50 condition_variable::__do_timed_wait(unique_lock<mutex>& lk, in __do_timed_wait()
80 notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk) in notify_all_at_thread_exit()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
Dmutex_try_to_lock.pass.cpp35 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f()
39 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f()
43 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f()
48 std::unique_lock<std::mutex> lk(m, std::try_to_lock); in f()
Dcopy_ctor.fail.cpp23 std::unique_lock<std::mutex> lk0(m); in main()
24 std::unique_lock<std::mutex> lk = lk0; in main()
Dmove_ctor.pass.cpp26 std::unique_lock<std::mutex> lk0(m); in main()
27 std::unique_lock<std::mutex> lk = std::move(lk0); in main()
Dcopy_assign.fail.cpp24 std::unique_lock<std::mutex> lk0(m0); in main()
25 std::unique_lock<std::mutex> lk1(m1); in main()
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/
Dop_bool.pass.cpp25 std::unique_lock<std::mutex> lk0; in main()
27 std::unique_lock<std::mutex> lk1(m); in main()
Downs_lock.pass.cpp25 std::unique_lock<std::mutex> lk0; in main()
27 std::unique_lock<std::mutex> lk1(m); in main()
Dmutex.pass.cpp25 std::unique_lock<std::mutex> lk0; in main()
27 std::unique_lock<std::mutex> lk1(m); in main()
/external/llvm/test/CodeGen/PowerPC/
Dglob-comp-aa-crash.ll15 %"class.std::__1::unique_lock" = type { %"class.std::__1::mutex"*, i8 }
22 %__lk = alloca %"class.std::__1::unique_lock", align 8
27 …%__m_.i.i = getelementptr inbounds %"class.std::__1::unique_lock", %"class.std::__1::unique_lock"*…
29 …__owns_.i.i = getelementptr inbounds %"class.std::__1::unique_lock", %"class.std::__1::unique_lock
32 …NS_5mutexEEE(%"class.std::__1::__assoc_sub_state"* %this, %"class.std::__1::unique_lock"* %__lk) #4
99 …ockINS_5mutexEEE(%"class.std::__1::__assoc_sub_state"*, %"class.std::__1::unique_lock"*) #0 align 2
/external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
Dmember_swap.pass.cpp31 std::unique_lock<mutex> lk1(m); in main()
32 std::unique_lock<mutex> lk2; in main()
Dnonmember_swap.pass.cpp32 std::unique_lock<mutex> lk1(m); in main()
33 std::unique_lock<mutex> lk2; in main()

123