Home
last modified time | relevance | path

Searched refs:once_flag (Results 1 – 25 of 65) sorted by relevance

123

/freebsd/contrib/llvm-project/libcxx/src/
H A Dcall_once.cpp31 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 Dmutex.cpp
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DHostInfoBase.cpp47 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 DThreading.h57 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 Dcall_once.c35 call_once(once_flag *flag, void (*func)(void)) in call_once()
41 _Static_assert(sizeof(once_flag) == sizeof(pthread_once_t),
H A Dthreads.h51 } once_flag; typedef
77 void call_once(once_flag *, void (*)(void));
/freebsd/contrib/llvm-project/llvm/include/llvm/
H A DPassSupport.h46 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 Dmutex174 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 DDWARFDebugInfo.h63 llvm::once_flag m_units_once_flag;
72 llvm::once_flag m_dwarf4_dwo_id_to_skeleton_unit_once_flag;
H A DDWARFContext.h28 llvm::once_flag flag;
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DDebugger.h517 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 DModule.h1060 std::once_flag m_optimization_warning;
1061 std::once_flag m_language_warning;
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DDataFileCache.cpp24 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 DProcessPOSIXLog.cpp32 static llvm::once_flag g_once_flag; in Initialize()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DProcessGDBRemoteLog.cpp43 static llvm::once_flag g_once_flag; in Initialize()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h142 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 DScriptInterpreterNone.cpp45 static llvm::once_flag g_once_flag; in Initialize()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DLanguage.cpp63 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 DProcessTrace.cpp98 static llvm::once_flag g_once_flag; in Initialize()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dmutex.cppm
/freebsd/contrib/llvm-project/lldb/source/Plugins/RegisterTypeBuilder/
H A DRegisterTypeBuilderClang.cpp22 static llvm::once_flag g_once_flag; in LLDB_PLUGIN_DEFINE()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangHost.cpp161 static llvm::once_flag g_once_flag; in GetClangResourceDir()
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DObjectFile.cpp259 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 DAppleObjCRuntimeV2.h473 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 Dc11.h114 typedef ::once_flag __libcpp_exec_once_flag;

123