16 _flag->store(
true, std::memory_order_release);
26 other._flag =
nullptr;
37 void release() noexcept
40 _flag->store(
false, std::memory_order_release);
45 std::atomic<bool>* _flag;
RAII guard for an atomic suspend flag: sets on construction, clears on destruction.
AutoSuspendGuard(const AutoSuspendGuard &)=delete
AutoSuspendGuard & operator=(const AutoSuspendGuard &)=delete
AutoSuspendGuard(AutoSuspendGuard &&other) noexcept
AutoSuspendGuard & operator=(AutoSuspendGuard &&other) noexcept
AutoSuspendGuard(std::atomic< bool > &flag)