Home
last modified time | relevance | path

Searched refs:call_once (Results 1 – 25 of 257) sorted by relevance

1234567891011

/external/llvm-project/clang/test/Analysis/
Dcall_once.cpp44 void call_once(once_flag &o, Callable&& func, Args&&... args) {}; in call_once() function
47 void call_once(once_flag &o, Callable func, Args&&... args) {}; in call_once() function
57 std::call_once(g_initialize, [&] { in test_called_warning()
73 std::call_once(g_initialize, [&] { in test_called_on_path_inside_no_warning()
90 std::call_once(g_initialize, [&] { in test_called_on_path_no_warning()
107 std::call_once(g_initialize, [&] { in test_called_on_path_warning()
122 std::call_once(g_initialize, [&] { in test_called_once_warning()
126 std::call_once(g_initialize, [&] { in test_called_once_warning()
141 std::call_once(g_initialize, [&] { in test_called_once_no_warning()
145 std::call_once(g_initialize, [&] { in test_called_once_no_warning()
[all …]
/external/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/
Dcall_once.pass.cpp39 std::call_once(flg0, init0); in f0()
61 std::call_once(flg3, init3); in f3()
84 std::call_once(flg1, init1(), 1); in f1()
100 std::call_once(flg2, init2(), 2, 3); in f2()
101 std::call_once(flg2, init2(), 4, 5); in f2()
128 std::call_once(flg41, init41); in f41()
129 std::call_once(flg42, init42); in f41()
134 std::call_once(flg42, init42); in f42()
135 std::call_once(flg41, init41); in f42()
239 std::call_once(f, MoveOnly(), MoveOnly()); in main()
[all …]
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/
Dcall_once.pass.cpp39 std::call_once(flg0, init0); in f0()
61 std::call_once(flg3, init3); in f3()
84 std::call_once(flg1, init1(), 1); in f1()
100 std::call_once(flg2, init2(), 2, 3); in f2()
101 std::call_once(flg2, init2(), 4, 5); in f2()
128 std::call_once(flg41, init41); in f41()
129 std::call_once(flg42, init42); in f41()
134 std::call_once(flg42, init42); in f42()
135 std::call_once(flg41, init41); in f42()
239 std::call_once(f, MoveOnly(), MoveOnly()); in main()
[all …]
/external/rust/crates/spin/src/
Donce.rs138 pub fn call_once<F: FnOnce() -> T>(&self, f: F) -> &T { in call_once() method
291 O.call_once(|| a += 1); in smoke_once()
293 O.call_once(|| a += 1); in smoke_once()
300 let a = O.call_once(|| 1); in smoke_once_value()
302 let b = O.call_once(|| 2); in smoke_once_value()
317 O.call_once(|| { in stampede_once()
328 O.call_once(|| { in stampede_once()
345 INIT.call_once(|| 2); in get()
355 INIT.call_once(|| loop { }); in get_no_wait()
366 INIT.call_once(|| 3); in poll()
[all …]
/external/rust/crates/futures-util/src/
Dfns.rs6 fn call_once(self, arg: A) -> Self::Output; in call_once() method
14 fn call_once(self, arg: A) -> R { in call_once() function
60 self.call_once(arg)
65 self.call_once(arg)
84 fn call_once(self, arg: A) -> Self::Output { in call_once() method
100 fn call_once(self, arg: A) -> Self::Output { in call_once() function
101 self.1.call_once(self.0.call_once(arg)) in call_once()
131 fn call_once(self, arg: Result<T, T>) -> Self::Output { in call_once() method
149 fn call_once(self, arg: A) -> Self::Output { in call_once() function
150 self.0.call_once(&arg); in call_once()
[all …]
/external/tensorflow/tensorflow/compiler/jit/
Dflags.cc260 absl::call_once(flags_init, &AllocateAndParseFlags); in SetXlaAutoJitFlagFromFlagString()
265 absl::call_once(flags_init, &AllocateAndParseFlags); in GetBuildXlaOpsPassFlags()
270 absl::call_once(flags_init, &AllocateAndParseFlags); in GetMarkForCompilationPassFlags()
275 absl::call_once(flags_init, &AllocateAndParseFlags); in GetXlaDeviceFlags()
280 absl::call_once(flags_init, &AllocateAndParseFlags); in GetXlaOpsCommonFlags()
286 absl::call_once(flags_init, &AllocateAndParseFlags); in GetIntroduceFloatingPointJitterPassFlags()
291 absl::call_once(flags_init, &AllocateAndParseFlags); in GetMlirCommonFlags()
296 absl::call_once(flags_init, &AllocateAndParseFlags); in AppendMarkForCompilationPassFlags()
/external/rust/crates/parking_lot/src/
Donce.rs157 pub fn call_once<F>(&self, f: F) in call_once() method
344 O.call_once(|| a += 1); in smoke_once()
346 O.call_once(|| a += 1); in smoke_once()
363 O.call_once(|| { in stampede_once()
374 O.call_once(|| { in stampede_once()
392 O.call_once(|| panic!()); in poison_bad()
398 O.call_once(|| {}); in poison_bad()
411 O.call_once(|| {}); in poison_bad()
420 O.call_once(|| panic!()); in wait_for_force_to_finish()
440 O.call_once(|| { in wait_for_force_to_finish()
/external/llvm-project/lldb/source/Host/common/
DHostInfoBase.cpp86 llvm::call_once(g_fields->m_host_triple_once, []() { in GetTargetTriple()
94 llvm::call_once(g_fields->m_host_arch_once, []() { in GetArchitecture()
119 llvm::call_once(g_fields->m_lldb_so_dir_once, []() { in GetShlibDir()
129 llvm::call_once(g_fields->m_lldb_support_exe_dir_once, []() { in GetSupportExeDir()
139 llvm::call_once(g_fields->m_lldb_headers_dir_once, []() { in GetHeaderDir()
149 llvm::call_once(g_fields->m_lldb_system_plugin_dir_once, []() { in GetSystemPluginDir()
160 llvm::call_once(g_fields->m_lldb_user_plugin_dir_once, []() { in GetUserPluginDir()
170 llvm::call_once(g_fields->m_lldb_process_tmp_dir_once, []() { in GetProcessTempDir()
181 llvm::call_once(g_fields->m_lldb_global_tmp_dir_once, []() { in GetGlobalTempDir()
/external/tensorflow/tensorflow/core/platform/
Dlogger.cc83 absl::call_once(container->delete_initialization_thread_flag, in GetSingleton()
91 absl::call_once(container->start_initialization_thread_flag, in GetSingletonAsync()
96 absl::call_once( in GetSingletonAsync()
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/
Dinsert_call_once_op.mlir3 // Tests that new call_once op is added when there is a session initializer.
25 // CHECK: "tfl.call_once"() {session_init_function = "init_all_tables"} : () -> ()
31 // Tests that no call_once op is added.
38 // CHECK-NOT: "tfl.call_once"
/external/protobuf/src/google/protobuf/stubs/
Donce.h45 void call_once(Args&&... args ) { in call_once() function
46 std::call_once(std::forward<Args>(args)...); in call_once()
/external/openscreen/platform/impl/
Dplatform_client_posix.cc38 std::call_once(tls_data_router_initialization_, [this]() { in tls_data_router()
47 std::call_once(udp_socket_reader_initialization_, [this]() { in udp_socket_reader()
96 std::call_once(waiter_initialization_, [this]() { in socket_handle_waiter()
/external/llvm-project/clang/test/Analysis/html_diagnostics/relevant_lines/
Dsynthesized_body.cpp8 void call_once(once_flag &o, Callable&& func, Args&&... args);
18 std::call_once(once, &deref, p); in call_deref_once()
/external/llvm-project/llvm/include/llvm/
DPassSupport.h47 llvm::call_once(Initialize##passName##PassFlag, \
67 llvm::call_once(Initialize##passName##PassFlag, \
148 llvm::call_once(Initialize##agName##AnalysisGroupFlag, \
169 llvm::call_once(Initialize##passName##PassFlag, \
190 llvm::call_once(Initialize##passName##PassFlag, \
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/
DPassSupport.h43 llvm::call_once(Initialize##passName##PassFlag, \
63 llvm::call_once(Initialize##passName##PassFlag, \
144 llvm::call_once(Initialize##agName##AnalysisGroupFlag, \
165 llvm::call_once(Initialize##passName##PassFlag, \
186 llvm::call_once(Initialize##passName##PassFlag, \
/external/llvm/include/llvm/
DPassSupport.h46 llvm::call_once(Initialize##passName##PassFlag, \
66 llvm::call_once(Initialize##passName##PassFlag, \
157 llvm::call_once(Initialize##agName##AnalysisGroupFlag, \
178 llvm::call_once(Initialize##passName##PassFlag, \
199 llvm::call_once(Initialize##passName##PassFlag, \
/external/llvm-project/libc/src/threads/
DCMakeLists.txt6 call_once
9 .${LIBC_TARGET_OS}.call_once
/external/llvm-project/libc/src/threads/linux/
DCMakeLists.txt12 call_once
14 call_once.cpp
16 ../call_once.h
/external/llvm/include/llvm/Support/
DThreading.h91 void call_once(once_flag &flag, Function &&F, Args &&... ArgList) { in call_once() function
93 std::call_once(flag, std::forward<Function>(F), in call_once()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DThreading.h91 void call_once(once_flag &flag, Function &&F, Args &&... ArgList) { in call_once() function
93 std::call_once(flag, std::forward<Function>(F), in call_once()
/external/llvm-project/libcxx/include/
Dmutex183 void call_once(once_flag& flag, Callable&& func, Args&&... args);
559 void call_once(once_flag&, _Callable&&, _Args&&...);
565 void call_once(once_flag&, _Callable&);
569 void call_once(once_flag&, const _Callable&);
595 void call_once(once_flag&, _Callable&&, _Args&&...);
599 void call_once(once_flag&, _Callable&);
603 void call_once(once_flag&, const _Callable&);
668 call_once(once_flag& __flag, _Callable&& __func, _Args&&... __args)
684 call_once(once_flag& __flag, _Callable& __func)
696 call_once(once_flag& __flag, const _Callable& __func)
/external/libcxx/include/
Dmutex184 void call_once(once_flag& flag, Callable&& func, Args&&... args);
559 void call_once(once_flag&, _Callable&&, _Args&&...);
565 void call_once(once_flag&, _Callable&);
569 void call_once(once_flag&, const _Callable&);
588 void call_once(once_flag&, _Callable&&, _Args&&...);
592 void call_once(once_flag&, _Callable&);
596 void call_once(once_flag&, const _Callable&);
660 call_once(once_flag& __flag, _Callable&& __func, _Args&&... __args)
676 call_once(once_flag& __flag, _Callable& __func)
688 call_once(once_flag& __flag, const _Callable& __func)
/external/python/cpython3/Lib/test/test_zoneinfo/
D_support.py13 def call_once(f): function
26 @call_once
/external/llvm-project/libc/test/src/threads/
Dcall_once_test.cpp28 __llvm_libc::call_once(&flag, call_once_func); in func()
68 __llvm_libc::call_once(&flag, blocking_once_func); in once_func_caller()
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dthread_identity.cc75 absl::call_once(init_thread_identity_key_once, AllocateThreadIdentityKey, in SetCurrentThreadIdentity()
102 absl::call_once(init_thread_identity_key_once, AllocateThreadIdentityKey, in SetCurrentThreadIdentity()

1234567891011