Home
last modified time | relevance | path

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

123456

/third_party/boost/boost/thread/pthread/
Donce_atomic.hpp27 struct once_flag;
49 BOOST_THREAD_DECL bool enter_once_region(once_flag& flag) BOOST_NOEXCEPT;
50 BOOST_THREAD_DECL void commit_once_region(once_flag& flag) BOOST_NOEXCEPT;
51 BOOST_THREAD_DECL void rollback_once_region(once_flag& flag) BOOST_NOEXCEPT;
52 inline atomic_type& get_atomic_storage(once_flag& flag) BOOST_NOEXCEPT;
57 struct once_flag struct
59 BOOST_THREAD_NO_COPYABLE(once_flag) in BOOST_THREAD_NO_COPYABLE()
60 BOOST_CONSTEXPR once_flag() BOOST_NOEXCEPT : storage(0) in BOOST_THREAD_NO_COPYABLE()
67 friend BOOST_THREAD_DECL bool thread_detail::enter_once_region(once_flag& flag) BOOST_NOEXCEPT;
68 friend BOOST_THREAD_DECL void thread_detail::commit_once_region(once_flag& flag) BOOST_NOEXCEPT;
[all …]
Donce.hpp33 struct once_flag;
48 …inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTyp…
51 inline void call_once(once_flag& flag, Function f);
53 inline void call_once(once_flag& flag, Function f, T1 p1);
55 inline void call_once(once_flag& flag, Function f, T1 p1, T2 p2);
57 inline void call_once(once_flag& flag, Function f, T1 p1, T2 p2, T3 p3);
60 struct once_flag struct
62 BOOST_THREAD_NO_COPYABLE(once_flag) in BOOST_THREAD_NO_COPYABLE() argument
63 BOOST_CONSTEXPR once_flag() BOOST_NOEXCEPT in BOOST_THREAD_NO_COPYABLE()
71 …friend void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTyp…
[all …]
/third_party/boost/libs/thread/doc/
Donce.qbk14 struct once_flag;
16 inline void call_once(once_flag& flag, Function&& f, ArgTypes&&... args);
19 void call_once(void (*func)(),once_flag& flag);
31 [section:once_flag Typedef `once_flag`]
34 struct once_flag
36 constexpr once_flag() noexcept;
37 once_flag(const once_flag&) = delete;
38 once_flag& operator=(const once_flag&) = delete;
41 typedef platform-specific-type once_flag;
45 Objects of type `boost::once_flag` shall be initialized with `BOOST_ONCE_INIT` if BOOST_THREAD_PROV…
[all …]
/third_party/abseil-cpp/absl/base/
Dcall_once.h46 class once_flag; variable
49 std::atomic<uint32_t>* ControlWord(absl::once_flag* flag);
77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args);
85 class once_flag {
87 constexpr once_flag() : control_(0) {} in once_flag() function
88 once_flag(const once_flag&) = delete;
89 once_flag& operator=(const once_flag&) = delete;
92 friend std::atomic<uint32_t>* base_internal::ControlWord(once_flag* flag);
106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args);
195 inline std::atomic<uint32_t>* ControlWord(once_flag* flag) { in ControlWord()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
Dcall_once.h46 class once_flag; variable
49 std::atomic<uint32_t>* ControlWord(absl::once_flag* flag);
77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args);
85 class once_flag {
87 constexpr once_flag() : control_(0) {} in once_flag() function
88 once_flag(const once_flag&) = delete;
89 once_flag& operator=(const once_flag&) = delete;
92 friend std::atomic<uint32_t>* base_internal::ControlWord(once_flag* flag);
106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args);
188 inline std::atomic<uint32_t>* ControlWord(once_flag* flag) { in ControlWord()
[all …]
/third_party/boost/libs/thread/test/sync/mutual_exclusion/once/call_once/
Dcall_once_pass.cpp38 boost::once_flag flg0 BOOST_INIT_ONCE_INIT;
53 boost::once_flag flg3 BOOST_INIT_ONCE_INIT;
89 boost::once_flag flg1 BOOST_INIT_ONCE_INIT;
96 boost::once_flag flg1_member BOOST_INIT_ONCE_INIT;
130 boost::once_flag flg2 BOOST_INIT_ONCE_INIT;
138 boost::once_flag flg41 BOOST_INIT_ONCE_INIT;
139 boost::once_flag flg42 BOOST_INIT_ONCE_INIT;
196 static boost::once_flag flag;
216 boost::once_flag id_string::flag BOOST_INIT_ONCE_INIT;
280 boost::once_flag f BOOST_INIT_ONCE_INIT; in main()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
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/boost/boost/thread/win32/
Donce.hpp39 struct once_flag;
44 inline bool enter_once_region(once_flag& flag, once_context& ctx) BOOST_NOEXCEPT;
45 inline void commit_once_region(once_flag& flag, once_context& ctx) BOOST_NOEXCEPT;
46 inline void rollback_once_region(once_flag& flag, once_context& ctx) BOOST_NOEXCEPT;
51 struct once_flag struct
53 BOOST_THREAD_NO_COPYABLE(once_flag) in BOOST_THREAD_NO_COPYABLE() argument
54 BOOST_CONSTEXPR once_flag() BOOST_NOEXCEPT in BOOST_THREAD_NO_COPYABLE()
60 … friend inline bool enter_once_region(once_flag& flag, detail::once_context& ctx) BOOST_NOEXCEPT;
61 … friend inline void commit_once_region(once_flag& flag, detail::once_context& ctx) BOOST_NOEXCEPT;
62 …friend inline void rollback_once_region(once_flag& flag, detail::once_context& ctx) BOOST_NOEXCEPT;
[all …]
/third_party/boost/libs/context/src/posix/
Dstack_traits.cpp58 static boost::once_flag flag = BOOST_ONCE_INIT; in pagesize()
61 static std::once_flag flag; in pagesize()
70 static boost::once_flag flag = BOOST_ONCE_INIT; in stacksize_limit()
73 static std::once_flag flag; in stacksize_limit()
/third_party/boost/libs/thread/test/
Dtest_8943.cpp37 boost::once_flag once_flag = BOOST_ONCE_INIT; in _tmain() local
38 boost::call_once(once_flag, foo()); in _tmain()
Dtest_once.cpp18 boost::once_flag flag=BOOST_ONCE_INIT;
92 static boost::once_flag functor_flag=BOOST_ONCE_INIT; in call_once_with_functor()
155 static boost::once_flag functor_flag=BOOST_ONCE_INIT; in call_once_with_exception()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DThreading.h88 typedef std::once_flag once_flag; typedef
99 struct once_flag { struct
118 void call_once(once_flag &flag, Function &&F, Args &&... ArgList) { in call_once()
/third_party/boost/libs/thread/src/pthread/
Donce_atomic.cpp36 BOOST_THREAD_DECL bool enter_once_region(once_flag& flag) BOOST_NOEXCEPT in enter_once_region()
69 BOOST_THREAD_DECL void commit_once_region(once_flag& flag) BOOST_NOEXCEPT in commit_once_region()
79 BOOST_THREAD_DECL void rollback_once_region(once_flag& flag) BOOST_NOEXCEPT in rollback_once_region()
/third_party/boost/boost/spirit/home/classic/core/non_terminal/impl/
Dstatic.hpp107 static once_flag constructed_;
115 once_flag static_<T, Tag>::constructed_ = BOOST_ONCE_INIT;
117 once_flag static_<T, Tag>::constructed_;
/third_party/icu/icu4c/source/common/
Dumutex.cpp54 std::once_flag initFlag;
55 std::once_flag *pInitFlag = &initFlag;
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/
Dumutex.cpp54 std::once_flag initFlag;
55 std::once_flag *pInitFlag = &initFlag;
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/
Dumutex.cpp54 std::once_flag initFlag;
55 std::once_flag *pInitFlag = &initFlag;
67 pInitFlag->~once_flag(); in umtx_cleanup()
68 pInitFlag = new(&initFlag) std::once_flag(); in umtx_cleanup()
/third_party/protobuf/src/google/protobuf/stubs/
Donce.h43 using once_flag = std::once_flag; variable
/third_party/boost/libs/thread/example/
Donce.cpp15 static boost::once_flag once;
18 static boost::once_flag once = BOOST_ONCE_INIT;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/
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/boost/libs/asio/include/boost/asio/detail/
Dstd_global.hpp46 static std::once_flag init_once_;
52 std::once_flag std_global_impl<T>::init_once_;
/third_party/boost/boost/asio/detail/
Dstd_global.hpp46 static std::once_flag init_once_;
52 std::once_flag std_global_impl<T>::init_once_;
/third_party/libphonenumber/cpp/src/phonenumbers/base/memory/
Dsingleton_boost.h42 static boost::once_flag flag_;
46 template <class T> boost::once_flag Singleton<T>::flag_ = BOOST_ONCE_INIT;
/third_party/boost/libs/context/src/windows/
Dstack_traits.cpp58 static boost::once_flag flag = BOOST_ONCE_INIT; in system_info()
61 static std::once_flag flag; in system_info()
/third_party/musl/porting/liteos_m/kernel/include/
Dthreads.h15 typedef int once_flag; typedef
58 void call_once(once_flag *, void (*)(void));

123456