Lines Matching refs:once_flag
174 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);
553 struct _LIBCPP_TEMPLATE_VIS once_flag;
559 void call_once(once_flag&, _Callable&&, _Args&&...);
565 void call_once(once_flag&, _Callable&);
569 void call_once(once_flag&, const _Callable&);
573 struct _LIBCPP_TEMPLATE_VIS once_flag
577 once_flag() _NOEXCEPT : __state_(0) {}
587 once_flag(const once_flag&); // = delete;
588 once_flag& operator=(const once_flag&); // = delete;
595 void call_once(once_flag&, _Callable&&, _Args&&...);
599 void call_once(once_flag&, _Callable&);
603 void call_once(once_flag&, const _Callable&);
660 _LIBCPP_FUNC_VIS void __call_once(volatile once_flag::_State_type&, void*,
668 call_once(once_flag& __flag, _Callable&& __func, _Args&&... __args)
670 if (__libcpp_acquire_load(&__flag.__state_) != ~once_flag::_State_type(0))
684 call_once(once_flag& __flag, _Callable& __func)
686 if (__libcpp_acquire_load(&__flag.__state_) != ~once_flag::_State_type(0))
696 call_once(once_flag& __flag, const _Callable& __func)
698 if (__libcpp_acquire_load(&__flag.__state_) != ~once_flag::_State_type(0))