/* * utility_atomicscopeguard.hpp * * Created on: Mar 21, 2021 * Author: erki */ #ifndef UTILITY_INC_UTILITY_ATOMICSCOPEGUARD_HPP_ #define UTILITY_INC_UTILITY_ATOMICSCOPEGUARD_HPP_ #include namespace Utility { class AtomicScopeGuard { public: AtomicScopeGuard(); AtomicScopeGuard(const AtomicScopeGuard&) = delete; AtomicScopeGuard(AtomicScopeGuard&&) = delete; ~AtomicScopeGuard(); private: static std::int32_t _reentrancy_counter; }; } #endif /* UTILITY_INC_UTILITY_ATOMICSCOPEGUARD_HPP_ */