72#define V8_DECLARE_ONCE(NAME) ::v8::base::OnceType NAME
82template <
typename... Args>
84 using type = void (*)(Args...);
88 std::function<
void()> init_func);
96template <
typename... Args>
100 requires(std::conjunction_v<std::is_scalar<Args>...>)
void CallOnceImpl(OnceType *once, std::function< void()> init_func)
void(*)(void *arg) PointerArgFunction
void CallOnce(OnceType *once, std::function< void()> init_func)
std::atomic< uint8_t > OnceType
V8_BASE_EXPORT int const char va_list args
@ ONCE_STATE_UNINITIALIZED
@ ONCE_STATE_EXECUTING_FUNCTION