Home
last modified time | relevance | path

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

1234

/third_party/skia/third_party/externals/abseil-cpp/absl/base/
H A Dcall_once.h46 class once_flag;
49 std::atomic<uint32_t>* ControlWord(absl::once_flag* flag);
54 // For all invocations using a given `once_flag`, invokes a given `fn` exactly
56 // `once_flag` argument (that does not throw an exception) will run the
58 // `once_flag` argument will not run the function, but will wait
69 // mutable absl::once_flag once_;
77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args);
79 // once_flag
85 class once_flag { class
87 constexpr once_flag() function in absl::once_flag
[all...]
H A Dcall_once_test.cc30 absl::once_flag once;
72 // Start 10 threads all calling call_once on the same once_flag. in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DThreading.h61 typedef std::once_flag once_flag; typedef
65 #define LLVM_DEFINE_ONCE_FLAG(flag) static once_flag flag
70 typedef volatile sys::cas_flag once_flag; typedef
74 #define LLVM_DEFINE_ONCE_FLAG(flag) static once_flag flag = Uninitialized
91 void call_once(once_flag &flag, Function &&F, Args &&... ArgList) { in call_once()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DThreading.h88 typedef std::once_flag once_flag; typedef
94 /// The llvm::once_flag structure
96 /// This type is modeled after std::once_flag to use with llvm::call_once.
98 /// autoinitialization and behave like std::once_flag.
99 struct once_flag { struct
111 /// static once_flag flag;
118 void call_once(once_flag &flag, Function &&F, Args &&... ArgList) { in call_once()
/third_party/icu/icu4c/source/common/
H A Dumutex.cpp54 std::once_flag initFlag;
55 std::once_flag *pInitFlag = &initFlag;
65 // Reset the once_flag, by destructing it and creating a fresh one in its place. in umtx_cleanup()
67 pInitFlag->~once_flag(); in umtx_cleanup()
68 pInitFlag = new(&initFlag) std::once_flag(); in umtx_cleanup()
/third_party/node/deps/icu-small/source/common/
H A Dumutex.cpp54 std::once_flag initFlag;
55 std::once_flag *pInitFlag = &initFlag;
65 // Reset the once_flag, by destructing it and creating a fresh one in its place. in umtx_cleanup()
67 pInitFlag->~once_flag(); in umtx_cleanup()
68 pInitFlag = new(&initFlag) std::once_flag(); in umtx_cleanup()
/third_party/skia/third_party/externals/icu/source/common/
H A Dumutex.cpp54 std::once_flag initFlag;
55 std::once_flag *pInitFlag = &initFlag;
65 // Reset the once_flag, by destructing it and creating a fresh one in its place. in umtx_cleanup()
67 pInitFlag->~once_flag(); in umtx_cleanup()
68 pInitFlag = new(&initFlag) std::once_flag(); in umtx_cleanup()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/
H A DPassSupport.h41 static llvm::once_flag Initialize##passName##PassFlag; \
61 static llvm::once_flag Initialize##passName##PassFlag; \
142 static llvm::once_flag Initialize##agName##AnalysisGroupFlag; \
163 static llvm::once_flag Initialize##passName##PassFlag; \
184 static llvm::once_flag Initialize##passName##PassFlag; \
/third_party/protobuf/src/google/protobuf/stubs/
H A Donce.h43 using once_flag = std::once_flag;
/third_party/mesa3d/src/c11/
H A Dthreads.h119 } once_flag; typedef
129 typedef pthread_once_t once_flag; typedef
162 void call_once(once_flag *, void (*)(void));
/third_party/libphonenumber/cpp/src/phonenumbers/base/memory/
H A Dsingleton_boost.h42 static boost::once_flag flag_;
46 template <class T> boost::once_flag Singleton<T>::flag_ = BOOST_ONCE_INIT;
/third_party/musl/porting/uniproton/kernel/include/
H A Dthreads.h15 typedef int once_flag; typedef
58 void call_once(once_flag *, void (*)(void));
/third_party/musl/porting/liteos_m/kernel/include/
H A Dthreads.h15 typedef int once_flag; typedef
58 void call_once(once_flag *, void (*)(void));
/third_party/musl/include/
H A Dthreads.h15 typedef int once_flag; typedef
58 void call_once(once_flag *, void (*)(void));
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Dsysinfo.cc341 ABSL_CONST_INIT static once_flag init_num_cpus_once;
353 ABSL_CONST_INIT static once_flag init_nominal_cpu_frequency_once;
416 ABSL_CONST_INIT static once_flag tid_once;
H A Dunscaledcycleclock.cc91 static once_flag init_timebase_frequency_once;
/third_party/musl/src/thread/
H A Dcall_once.c4 void call_once(once_flag *flag, void (*func)(void)) in call_once()
/third_party/mesa3d/src/util/
H A Du_perfetto.cc46 static once_flag perfetto_once_flag = ONCE_FLAG_INIT;
/third_party/mesa3d/src/mapi/
H A Dtable.c62 static once_flag flag = ONCE_FLAG_INIT; in noop_warn()
/third_party/protobuf/src/google/protobuf/
H A Dimplicit_weak_message.cc51 internal::once_flag implicit_weak_message_once_init_;
/third_party/mesa3d/src/amd/llvm/
H A Dac_llvm_util.c71 static once_flag ac_init_llvm_target_once_flag = ONCE_FLAG_INIT; in ac_init_shared_llvm_once()
76 static once_flag ac_init_static_llvm_target_once_flag = ONCE_FLAG_INIT;
/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dcall_once.c31 static once_flag flag = ONCE_FLAG_INIT;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DManagedStatic.cpp22 static llvm::once_flag mutex_init_flag;
/third_party/vulkan-loader/loader/
H A Ddlopen_fuchsia.c48 static once_flag svc_connect_once_flag = ONCE_FLAG_INIT;
/third_party/mesa3d/src/virtio/vulkan/
H A Dvn_common.c64 static once_flag once = ONCE_FLAG_INIT; in vn_env_init()

Completed in 8 milliseconds

1234