prf::control::ExchangeGuard class final

RAII guard representing ownership of the single in-flight exchange lock.

Constructors, destructors, conversion operators

ExchangeGuard() defaulted
ExchangeGuard(const ExchangeGuard&) deleted
ExchangeGuard(ExchangeGuard&& other) noexcept
ExchangeGuard(std::atomic_bool*const state) explicit
~ExchangeGuard()

Public functions

auto operator=(const ExchangeGuard&) -> ExchangeGuard& deleted
auto operator=(ExchangeGuard&& other) -> ExchangeGuard& noexcept
auto owns_lock() const -> bool
Returns true when this guard currently owns the global exchange lock.