// SPDX-FileCopyrightText: Copyright 2026 Gloria Goertz, Mireille Meyer // SPDX-License-Identifier: BSD-2-Clause #include #include namespace atom { // Bootstrap extensions class Bootstrap2 { public: // Fetches the internal singleton. static Bootstrap2& Get(); // Returns whether the runtime is exiting. bool IsRuntimeFinalizing() const { return m_isFinalizing; } // Static handler to be registered with `std::atexit`, check `Bootstrap.mm` for more info. ATOM_EXPORTED static void ExitHandler(); private: Bootstrap2() : m_isFinalizing{false} { } static Bootstrap2 SINGLETON; std::atomic m_isFinalizing; }; }