Searched refs:once_flag (Results 1 - 25 of 57) sorted by relevance

123

/freebsd-current/lib/libstdthreads/
H A Dcall_once.c35 call_once(once_flag *flag, void (*func)(void))
41 _Static_assert(sizeof(once_flag) == sizeof(pthread_once_t),
42 "once_flag must be of the same size as pthread_once_t");
H A Dthreads.h38 * <pthread.h>. To prevent namespace pollution, the once_flag object,
51 } once_flag; typedef in typeref:struct:__anon396
77 void call_once(once_flag *, void (*)(void));
/freebsd-current/contrib/llvm-project/libcxx/src/
H A Dcall_once.cpp9 #include <__mutex/once_flag.h>
31 void __call_once(volatile once_flag::_State_type& flag, void* arg, void (*func)(void*)) {
34 if (flag == once_flag::_Unset) {
35 auto guard = std::__make_exception_guard([&flag] { flag = once_flag::_Unset; });
36 flag = once_flag::_Pending;
38 flag = once_flag::_Complete;
45 while (flag == once_flag::_Pending)
47 if (flag == once_flag::_Unset) {
50 __libcpp_relaxed_store(&flag, once_flag::_Unset);
55 __libcpp_relaxed_store(&flag, once_flag
[all...]
/freebsd-current/contrib/llvm-project/libcxx/include/__mutex/
H A Donce_flag.h33 struct _LIBCPP_TEMPLATE_VIS once_flag; variable in typeref:struct:_LIBCPP_TEMPLATE_VIS
38 _LIBCPP_HIDE_FROM_ABI void call_once(once_flag&, _Callable&&, _Args&&...);
43 _LIBCPP_HIDE_FROM_ABI void call_once(once_flag&, _Callable&);
46 _LIBCPP_HIDE_FROM_ABI void call_once(once_flag&, const _Callable&);
50 struct _LIBCPP_TEMPLATE_VIS once_flag { struct
51 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR once_flag() _NOEXCEPT : __state_(_Unset) {}
52 once_flag(const once_flag&) = delete;
53 once_flag& operator=(const once_flag
[all...]
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/POSIX/
H A DProcessPOSIXLog.cpp32 static llvm::once_flag g_once_flag;
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DProcessGDBRemoteLog.cpp43 static llvm::once_flag g_once_flag;
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DThreading.h57 typedef std::once_flag once_flag; typedef in namespace:llvm
63 /// The llvm::once_flag structure
65 /// This type is modeled after std::once_flag to use with llvm::call_once.
67 /// autoinitialization and behave like std::once_flag.
68 struct once_flag { struct in namespace:llvm
80 /// static once_flag flag;
87 void call_once(once_flag &flag, Function &&F, Args &&... ArgList) {
/freebsd-current/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_onc
[all...]
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/
H A DScriptInterpreterNone.cpp45 static llvm::once_flag g_once_flag;
/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Dmutex.inc41 using std::once_flag;
/freebsd-current/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-current/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFContext.h28 llvm::once_flag flag;
H A DDWARFDebugInfo.h66 llvm::once_flag m_units_once_flag;
H A DSymbolFileDWARF.h504 llvm::once_flag m_dwp_symfile_once_flag;
509 llvm::once_flag m_info_once_flag;
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/RegisterTypeBuilder/
H A DRegisterTypeBuilderClang.cpp22 static llvm::once_flag g_once_flag;
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Core/
H A DDebugger.h519 /// If a pointer is passed to a std::once_flag, then it will be used to
524 std::once_flag *once = nullptr);
541 /// If a pointer is passed to a std::once_flag, then it will be used to
546 std::once_flag *once = nullptr);
561 /// If a pointer is passed to a std::once_flag, then it will be used to
566 std::once_flag *once = nullptr);
633 std::once_flag *once);
727 llvm::once_flag m_clear_once;
H A DModule.h1060 std::once_flag m_optimization_warning;
1061 std::once_flag m_language_warning;
/freebsd-current/contrib/llvm-project/lldb/source/Core/
H A DDataFileCache.cpp24 static llvm::once_flag once_flag; local
26 llvm::call_once(once_flag, []() {
/freebsd-current/contrib/llvm-project/lldb/source/Target/
H A DProcessTrace.cpp97 static llvm::once_flag g_once_flag;
H A DLanguage.cpp32 static llvm::once_flag g_initialize;
43 static llvm::once_flag g_initialize;
103 static llvm::once_flag g_initialize;
/freebsd-current/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-current/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangHost.cpp161 static llvm::once_flag g_once_flag;
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/SymbolLocator/Debuginfod/
H A DSymbolLocatorDebuginfod.cpp109 static llvm::once_flag g_once_flag;
/freebsd-current/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-current/contrib/llvm-project/lldb/source/Utility/
H A DConstString.cpp196 static llvm::once_flag g_pool_initialization_flag;

Completed in 180 milliseconds

123