Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/libcxx/include/__mutex/
H A Dunique_lock.h30 class _LIBCPP_TEMPLATE_VIS unique_lock {
39 _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI unique_lock() _NOEXCEPT : __m_(nullptr), __owns_(false) {} in unique_lock() function
40 _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI explicit unique_lock(mutex_type& __m) in unique_lock() function
45 _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI unique_lock(mutex_type& __m, defer_lock_t) _NOEXCEPT in unique_lock() function
49 _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI unique_lock(mutex_type& __m, try_to_lock_t) in unique_lock() function
52 _LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI unique_lock(mutex_type& __m, adopt_lock_t) in unique_lock() function
56 …_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI unique_lock(mutex_type& __m, const chrono::time_point<_Clo… in unique_lock() function
60 …_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI unique_lock(mutex_type& __m, const chrono::duration<_Rep, … in unique_lock() function
63 _LIBCPP_HIDE_FROM_ABI ~unique_lock() { in ~unique_lock()
68 unique_lock(unique_lock const&) = delete;
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dmutex127 class unique_lock
131 unique_lock() noexcept;
132 explicit unique_lock(mutex_type& m);
133 unique_lock(mutex_type& m, defer_lock_t) noexcept;
134 unique_lock(mutex_type& m, try_to_lock_t);
135 unique_lock(mutex_type& m, adopt_lock_t);
137 unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);
139 unique_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time);
140 ~unique_lock();
142 unique_lock(unique_lock const&) = delete;
[all …]
H A Dcondition_variable33 void wait(unique_lock<mutex>& lock);
35 void wait(unique_lock<mutex>& lock, Predicate pred);
39 wait_until(unique_lock<mutex>& lock,
44 wait_until(unique_lock<mutex>& lock,
50 wait_for(unique_lock<mutex>& lock,
55 wait_for(unique_lock<mutex>& lock,
63 void notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk);
130 #include <__mutex/unique_lock.h>
222 unique_lock<mutex> __lk(*__mut);
224 lock_guard<unique_lock<mutex> > __lx(__lk, adopt_lock_t());
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__condition_variable/
H A Dcondition_variable.h60 void wait(unique_lock<mutex>& __lk) _NOEXCEPT; in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
62 …_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS void wait(unique_lock<mutex>& __lk, _Predicate … in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
66 wait_until(unique_lock<mutex>& __lk, const chrono::time_point<_Clock, _Duration>& __t); in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
70 …wait_until(unique_lock<mutex>& __lk, const chrono::time_point<_Clock, _Duration>& __t, _Predicate … in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
74 wait_for(unique_lock<mutex>& __lk, const chrono::duration<_Rep, _Period>& __d); in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
78 wait_for(unique_lock<mutex>& __lk, const chrono::duration<_Rep, _Period>& __d, _Predicate __pred); in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
85 …__do_timed_wait(unique_lock<mutex>& __lk, chrono::time_point<chrono::system_clock, chrono::nanosec… in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
88 …__do_timed_wait(unique_lock<mutex>& __lk, chrono::time_point<chrono::steady_clock, chrono::nanosec… in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
92 …__do_timed_wait(unique_lock<mutex>& __lk, chrono::time_point<_Clock, chrono::nanoseconds>) _NOEXCE… in _LIBCPP_DECLARE_STRONG_ENUM_EPILOG()
145 void condition_variable::wait(unique_lock<mutex>& __lk, _Predicate __pred) { in wait()
[all …]
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBThread.cpp93 std::unique_lock<std::recursive_mutex> lock; in GetQueue()
116 std::unique_lock<std::recursive_mutex> lock; in operator bool()
140 std::unique_lock<std::recursive_mutex> lock; in GetStopReason()
156 std::unique_lock<std::recursive_mutex> lock; in GetStopReasonDataCount()
213 std::unique_lock<std::recursive_mutex> lock; in GetStopReasonDataAtIndex()
284 std::unique_lock<std::recursive_mutex> lock; in GetStopReasonExtendedInfoAsJSON()
306 std::unique_lock<std::recursive_mutex> lock; in GetStopReasonExtendedBacktraces()
327 std::unique_lock<std::recursive_mutex> lock; in GetStopDescription()
356 std::unique_lock<std::recursive_mutex> lock; in GetStopReturnValue()
397 std::unique_lock<std::recursive_mutex> lock; in GetName()
[all …]
H A DSBFrame.cpp100 std::unique_lock<std::recursive_mutex> lock; in operator bool()
119 std::unique_lock<std::recursive_mutex> lock; in GetSymbolContext()
140 std::unique_lock<std::recursive_mutex> lock; in GetModule()
164 std::unique_lock<std::recursive_mutex> lock; in GetCompileUnit()
188 std::unique_lock<std::recursive_mutex> lock; in GetFunction()
212 std::unique_lock<std::recursive_mutex> lock; in GetSymbol()
235 std::unique_lock<std::recursive_mutex> lock; in GetBlock()
256 std::unique_lock<std::recursive_mutex> lock; in GetFrameBlock()
277 std::unique_lock<std::recursive_mutex> lock; in GetLineEntry()
301 std::unique_lock<std::recursive_mutex> lock; in GetFrameID()
[all …]
H A DSBInstruction.cpp119 std::unique_lock<std::recursive_mutex> lock; in GetMnemonic()
121 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetMnemonic()
138 std::unique_lock<std::recursive_mutex> lock; in GetOperands()
140 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetOperands()
157 std::unique_lock<std::recursive_mutex> lock; in GetComment()
159 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetComment()
174 std::unique_lock<std::recursive_mutex> lock; in GetControlFlowKind()
176 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetControlFlowKind()
H A DSBCommandInterpreter.cpp457 std::unique_lock<std::recursive_mutex> lock; in SourceInitFileInGlobalDirectory()
459 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in SourceInitFileInGlobalDirectory()
480 std::unique_lock<std::recursive_mutex> lock; in SourceInitFileInHomeDirectory()
482 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in SourceInitFileInHomeDirectory()
496 std::unique_lock<std::recursive_mutex> lock; in SourceInitFileInCurrentWorkingDirectory()
498 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in SourceInitFileInCurrentWorkingDirectory()
H A DSBSymbol.cpp120 std::unique_lock<std::recursive_mutex> lock; in GetInstructions()
122 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetInstructions()
/freebsd/contrib/llvm-project/libcxx/src/
H A Dfuture.cpp63 unique_lock<mutex> __lk(__mut_); in future_category()
71 unique_lock<mutex> __lk(__mut_);
79 unique_lock<mutex> __lk(__mut_); in __on_zero_shared()
88 unique_lock<mutex> __lk(__mut_); in set_value()
96 unique_lock<mutex> __lk(__mut_); in set_value_at_thread_exit()
102 unique_lock<mutex> __lk(__mut_);
109 unique_lock<mutex> __lk(__mut_); in set_exception()
113 void __assoc_sub_state::__sub_wait(unique_lock<mutex>& __lk) {
H A Dshared_mutex.cpp23 unique_lock<mutex> lk(__mut_);
32 unique_lock<mutex> lk(__mut_); in lock()
49 unique_lock<mutex> lk(__mut_);
58 unique_lock<mutex> lk(__mut_); in lock_shared()
H A Dmutex.cpp79 unique_lock<mutex> lk(__m_); in unlock()
86 unique_lock<mutex> lk(__m_, try_to_lock); in try_lock()
108 unique_lock<mutex> lk(__m_); in lock()
123 unique_lock<mutex> lk(__m_, try_to_lock);
135 unique_lock<mutex> lk(__m_); in recursive_timed_mutex()
H A Dcondition_variable.cpp27 void condition_variable::wait(unique_lock<mutex>& lk) noexcept {
35 void condition_variable::__do_timed_wait(unique_lock<mutex>& lk, in notify_all()
59 void notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk) { in __do_timed_wait()
/freebsd/contrib/llvm-project/libcxx/src/experimental/include/tzdb/
H A Dtzdb_list_private.h52 unique_lock __lock{__mutex_}; in __load()
62 unique_lock __lock{__mutex_}; in __front()
69 unique_lock __lock{__mutex_}; in __erase_after()
78 unique_lock __lock{__mutex_}; in __begin()
/freebsd/contrib/llvm-project/libcxx/include/__memory_resource/
H A Dsynchronized_pool_resource.h53 unique_lock<mutex> __lk(__mut_); in release()
65 unique_lock<mutex> __lk(__mut_); in do_allocate()
72 unique_lock<mutex> __lk(__mut_); in do_deallocate()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DThreadPool.cpp65 std::unique_lock<std::mutex> LockGuard(QueueLock); in processTasks()
147 std::unique_lock<std::mutex> LockGuard(QueueLock); in wait()
155 std::unique_lock<std::mutex> LockGuard(QueueLock); in wait()
181 std::unique_lock<std::mutex> LockGuard(QueueLock); in ~StdThreadPool()
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DAllTUsExecution.cpp37 std::unique_lock<std::mutex> LockGuard(Mutex); in addResult()
92 std::unique_lock<std::mutex> LockGuard(TUMutex); in execute()
97 std::unique_lock<std::mutex> LockGuard(TUMutex); in execute()
111 std::unique_lock<std::mutex> LockGuard(TUMutex); in execute()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DListener.cpp180 std::unique_lock<std::mutex> &lock, in FindNextEventInternal()
233 std::unique_lock<std::mutex> guard(m_events_mutex); in PeekAtNextEvent()
241 std::unique_lock<std::mutex> guard(m_events_mutex); in PeekAtNextEventForBroadcaster()
251 std::unique_lock<std::mutex> guard(m_events_mutex); in PeekAtNextEventForBroadcasterWithType()
266 std::unique_lock<std::mutex> lock(m_events_mutex); in GetEventInternal()
/freebsd/contrib/llvm-project/clang/lib/DirectoryWatcher/windows/
H A DDirectoryWatcher-windows.cpp53 std::unique_lock<std::mutex> L(M); in emplace()
60 std::unique_lock<std::mutex> L(M); in pop_front()
135 std::unique_lock<std::mutex> lock(Mutex); in InitialScan()
163 std::unique_lock<std::mutex> lock(Mutex); in WatcherThreadProc()
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DOptionParser.cpp18 void OptionParser::Prepare(std::unique_lock<std::mutex> &lock) { in Prepare()
20 lock = std::unique_lock<std::mutex>(g_mutex); in Prepare()
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Dmacho_platform.cpp337 void runAtExits(std::unique_lock<std::mutex> &JDStatesLock,
359 lookupSymbols(JITDylibState &JDS, std::unique_lock<std::mutex> &JDStatesLock,
371 static Error runModInits(std::unique_lock<std::mutex> &JDStatesLock, in create()
375 Error dlopenFull(std::unique_lock<std::mutex> &JDStatesLock, in create()
377 Error dlopenInitialize(std::unique_lock<std::mutex> &JDStatesLock, in get()
381 Error dlcloseDeinitialize(std::unique_lock<std::mutex> &JDStatesLock,
810 std::unique_lock<std::mutex> Lock(JDStatesMutex); in walkEHFrameSection()
853 std::unique_lock<std::mutex> &JDStatesLock, JITDylibState &JDS) {
868 std::unique_lock<std::mutex> Lock(JDStatesMutex); in registerObjCRegistrationObjects()
925 JITDylibState &JDS, std::unique_lock<st in dlopenImpl()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFContext.cpp638 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getNormalUnits()
642 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getDWOUnits()
649 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getCUIndex()
653 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getDebugAbbrevDWO()
658 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getTUIndex()
662 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getGdbIndex()
666 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getDebugAbbrev()
670 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getDebugLoc()
674 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getDebugAranges()
679 std::unique_lock<std::recursive_mutex> LockGuard(Mutex); in getLineTableForUnit()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteClientBase.cpp319 std::unique_lock<std::mutex> lock(m_comm.m_mutex); in unlock()
333 std::unique_lock<std::mutex> lock(m_comm.m_mutex); in lock()
367 std::unique_lock<std::mutex> lock(m_comm.m_mutex); in SyncWithContinueThread()
400 std::unique_lock<std::mutex> lock(m_comm.m_mutex); in ~Lock()
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtil.cpp190 std::unique_lock<std::mutex> l(SymbolizeMutex, std::try_to_lock); in DescribePC()
208 std::unique_lock<std::mutex> l(SymbolizeMutex, std::try_to_lock); in PrintStackTrace()
214 std::unique_lock<std::mutex> l(SymbolizeMutex, std::try_to_lock); in PrintMemoryProfile()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DValueMap.h263 std::unique_lock<typename Config::mutex_type> Guard;
265 Guard = std::unique_lock<typename Config::mutex_type>(*M);
276 std::unique_lock<typename Config::mutex_type> Guard;
278 Guard = std::unique_lock<typename Config::mutex_type>(*M);

1234