/freebsd/contrib/llvm-project/libcxx/src/ |
H A D | call_once.cpp | 31 void __call_once(volatile once_flag::_State_type& flag, void* arg, void (*func)(void*)) { in __call_once() 34 if (flag == once_flag::_Unset) { in __call_once() 35 auto guard = std::__make_exception_guard([&flag] { flag = once_flag::_Unset; }); in __call_once() 36 flag = once_flag::_Pending; in __call_once() 38 flag = once_flag::_Complete; in __call_once() 45 while (flag == once_flag::_Pending) in __call_once() 47 if (flag == once_flag::_Unset) { in __call_once() 50 __libcpp_relaxed_store(&flag, once_flag::_Unset); in __call_once() 55 __libcpp_relaxed_store(&flag, once_flag::_Pending); in __call_once() 59 __libcpp_atomic_store(&flag, once_flag::_Complete, _AO_Release); in __call_once()
|
H A D | mutex.cpp |
|
/freebsd/contrib/llvm-project/lldb/source/Host/common/ |
H A D | HostInfoBase.cpp | 47 llvm::once_flag m_host_triple_once; 50 llvm::once_flag m_host_arch_once; 54 llvm::once_flag m_lldb_so_dir_once; 56 llvm::once_flag m_lldb_support_exe_dir_once; 58 llvm::once_flag m_lldb_headers_dir_once; 60 llvm::once_flag m_lldb_clang_resource_dir_once; 62 llvm::once_flag m_lldb_system_plugin_dir_once; 64 llvm::once_flag m_lldb_user_plugin_dir_once; 66 llvm::once_flag m_lldb_process_tmp_dir_once; 68 llvm::once_flag m_lldb_global_tmp_dir_once;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Threading.h | 57 typedef std::once_flag once_flag; typedef 68 struct once_flag { struct 87 void call_once(once_flag &flag, Function &&F, Args &&... ArgList) { in call_once()
|
/freebsd/lib/libstdthreads/ |
H A D | call_once.c | 35 call_once(once_flag *flag, void (*func)(void)) in call_once() 41 _Static_assert(sizeof(once_flag) == sizeof(pthread_once_t),
|
H A D | threads.h | 51 } once_flag; typedef 77 void call_once(once_flag *, void (*)(void));
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ |
H A D | PassSupport.h | 46 static llvm::once_flag Initialize##passName##PassFlag; \ 66 static llvm::once_flag Initialize##passName##PassFlag; \ 161 static llvm::once_flag Initialize##agName##AnalysisGroupFlag; \ 182 static llvm::once_flag Initialize##passName##PassFlag; \ 203 static llvm::once_flag Initialize##passName##PassFlag; \
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | mutex | 174 struct once_flag 176 constexpr once_flag() noexcept; 178 once_flag(const once_flag&) = delete; 179 once_flag& operator=(const once_flag&) = delete; 183 void call_once(once_flag& flag, Callable&& func, Args&&... args); 196 #include <__mutex/once_flag.h>
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFDebugInfo.h | 63 llvm::once_flag m_units_once_flag; 72 llvm::once_flag m_dwarf4_dwo_id_to_skeleton_unit_once_flag;
|
H A D | DWARFContext.h | 28 llvm::once_flag flag;
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | Debugger.h | 517 std::once_flag *once = nullptr); 539 std::once_flag *once = nullptr); 559 std::once_flag *once = nullptr); 642 std::once_flag *once); 736 llvm::once_flag m_clear_once;
|
H A D | Module.h | 1060 std::once_flag m_optimization_warning; 1061 std::once_flag m_language_warning;
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | DataFileCache.cpp | 24 static llvm::once_flag once_flag; in GetLLDBIndexCachePolicy() local 26 llvm::call_once(once_flag, []() { in GetLLDBIndexCachePolicy()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/POSIX/ |
H A D | ProcessPOSIXLog.cpp | 32 static llvm::once_flag g_once_flag; in Initialize()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
H A D | ProcessGDBRemoteLog.cpp | 43 static llvm::once_flag g_once_flag; in Initialize()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | PdbAstBuilder.h | 142 llvm::once_flag m_parse_functions_and_non_local_vars; 143 llvm::once_flag m_parse_all_types;
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ |
H A D | ScriptInterpreterNone.cpp | 45 static llvm::once_flag g_once_flag; in Initialize()
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | Language.cpp | 63 static llvm::once_flag g_initialize; in GetLanguagesMap() 74 static llvm::once_flag g_initialize; in GetLanguagesMutex() 134 static llvm::once_flag g_initialize; in ForEach()
|
H A D | ProcessTrace.cpp | 98 static llvm::once_flag g_once_flag; in Initialize()
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | mutex.cppm |
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/RegisterTypeBuilder/ |
H A D | RegisterTypeBuilderClang.cpp | 22 static llvm::once_flag g_once_flag; in LLDB_PLUGIN_DEFINE()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ClangHost.cpp | 161 static llvm::once_flag g_once_flag; in GetClangResourceDir()
|
/freebsd/contrib/llvm-project/lldb/source/Symbol/ |
H A D | ObjectFile.cpp | 259 m_symtab_once_up(new llvm::once_flag()) { in ObjectFile() 280 m_symtab_up(), m_symtab_once_up(new llvm::once_flag()) { in ObjectFile() 594 m_symtab_once_up.reset(new llvm::once_flag()); in ClearSymtab()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
H A D | AppleObjCRuntimeV2.h | 473 std::once_flag m_no_classes_cached_warning; 474 std::once_flag m_no_expanded_cache_warning;
|
/freebsd/contrib/llvm-project/libcxx/include/__thread/support/ |
H A D | c11.h | 114 typedef ::once_flag __libcpp_exec_once_flag;
|