hpx/synchronization/once.hpp

See Public API for a list of names and headers that are part of the public HPX API.

Defines

HPX_ONCE_INIT
namespace hpx

Functions

template<typename F, typename ...Args>
void call_once(once_flag &flag, F &&f, Args&&... args)
struct once_flag

Public Functions

HPX_NON_COPYABLE(once_flag)
once_flag()

Private Members

std::atomic<long> status_
lcos::local::event event_

Friends

template<typename F, typename ...Args>
void call_once(once_flag &flag, F &&f, Args&&... args)
namespace lcos
namespace local

Functions

template<typename F, typename... Args>hpx::lcos::local::HPX_DEPRECATED_V(1, 8, "hpx::lcos::local::call_once is deprecated, use hpx::call_once " " instead ")