Home
last modified time | relevance | path

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

1234

/external/libcxx/include/
D__mutex_base121 class _LIBCPP_TEMPLATE_VIS unique_lock
132 unique_lock() _NOEXCEPT : __m_(nullptr), __owns_(false) {}
134 explicit unique_lock(mutex_type& __m)
137 unique_lock(mutex_type& __m, defer_lock_t) _NOEXCEPT
140 unique_lock(mutex_type& __m, try_to_lock_t)
143 unique_lock(mutex_type& __m, adopt_lock_t)
147 unique_lock(mutex_type& __m, const chrono::time_point<_Clock, _Duration>& __t)
151 unique_lock(mutex_type& __m, const chrono::duration<_Rep, _Period>& __d)
154 ~unique_lock()
161 unique_lock(unique_lock const&); // = delete;
[all …]
Dmutex126 class unique_lock
130 unique_lock() noexcept;
131 explicit unique_lock(mutex_type& m);
132 unique_lock(mutex_type& m, defer_lock_t) noexcept;
133 unique_lock(mutex_type& m, try_to_lock_t);
134 unique_lock(mutex_type& m, adopt_lock_t);
136 unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
138 unique_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time);
139 ~unique_lock();
141 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);
200 unique_lock<mutex> __lk(*__mut);
203 lock_guard<unique_lock<mutex> > __lx(__lk, adopt_lock);
222 unique_lock<mutex> __lk(*__mut);
[all …]
/external/swiftshader/third_party/llvm-subzero/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/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/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()
91 std::unique_lock<std::mutex> LockGuard(QueueLock); in asyncImpl()
105 std::unique_lock<std::mutex> LockGuard(QueueLock); in ~ThreadPool()
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/
Dnotify_one.pass.cpp33 std::unique_lock<std::mutex> lk(mut); in f1()
43 std::unique_lock<std::mutex> lk(mut); in f2()
57 std::unique_lock<std::mutex>lk(mut); in main()
64 std::unique_lock<std::mutex>lk(mut); in main()
83 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_pred.pass.cpp49 std::unique_lock<std::mutex> lk(mut); in f()
73 std::unique_lock<std::mutex>lk(mut); in main()
87 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_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/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.cpp103 unique_lock<mutex> lk(__m_); in lock()
112 unique_lock<mutex> lk(__m_, try_to_lock); in try_lock()
146 unique_lock<mutex> lk(__m_); in lock()
164 unique_lock<mutex> lk(__m_, try_to_lock); in try_lock()
179 unique_lock<mutex> lk(__m_); in unlock()
Dcondition_variable.cpp38 condition_variable::wait(unique_lock<mutex>& lk) _NOEXCEPT in wait()
49 condition_variable::__do_timed_wait(unique_lock<mutex>& lk, in __do_timed_wait()
79 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/
Dmove_ctor.pass.cpp27 std::unique_lock<M> lk0(m); in main()
28 std::unique_lock<M> lk = std::move(lk0); in main()
37 std::unique_lock<M> lk0(m); in main()
38 std::unique_lock<M> lk = std::move(lk0); in main()
Dmove_assign.pass.cpp28 std::unique_lock<M> lk0(m0); in main()
29 std::unique_lock<M> lk1(m1); in main()
40 std::unique_lock<M> lk0(m0); in main()
41 std::unique_lock<M> lk1(m1); in main()
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()
/external/vulkan-validation-layers/layers/
Dthreading.h81 std::unique_lock<std::mutex> lock(counter_lock); in startWrite()
150 std::unique_lock<std::mutex> lock(counter_lock); in finishWrite()
163 std::unique_lock<std::mutex> lock(counter_lock); in startRead()
195 std::unique_lock<std::mutex> lock(counter_lock); in finishRead()
330 std::unique_lock<std::mutex> lock(command_pool_lock);
340 std::unique_lock<std::mutex> lock(command_pool_lock);
347 std::unique_lock<std::mutex> lock(command_pool_lock); in startReadObject()
355 std::unique_lock<std::mutex> lock(command_pool_lock); in finishReadObject()
/external/drm_hwcomposer/
Dqueue_worker.h76 int WaitCond(std::unique_lock<std::mutex> &lock, Predicate pred,
89 int QueueWorker<T>::WaitCond(std::unique_lock<std::mutex> &lock, Predicate pred, in WaitCond()
111 std::unique_lock<std::mutex> lk(mutex_); in Routine()
142 std::unique_lock<std::mutex> lk(mutex_); in QueueWork()
Dworker.cpp46 std::unique_lock<std::mutex> lk(mutex_); in Exit()
61 std::unique_lock<std::mutex> lk(mutex_, std::adopt_lock); in WaitForSignalOrExitLocked()
83 std::unique_lock<std::mutex> lk(mutex_, std::defer_lock); in InternalRoutine()
/external/libcxx/test/std/thread/thread.condition/
DPR30202_notify_from_pthread_created_thread.pass.cpp42 std::unique_lock<std::mutex> lk(mut); in func()
52 std::unique_lock<std::mutex> lk(mut); in main()
66 std::unique_lock<std::mutex> lk(mut); 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()

1234