services.h 614 B

12345678910111213141516171819202122
  1. // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/polyfill_thread.h"
  5. #include "core/hle/service/sm/sm.h"
  6. namespace Service {
  7. /**
  8. * The purpose of this class is to own any objects that need to be shared across the other service
  9. * implementations. Will be torn down when the global system instance is shutdown.
  10. */
  11. class Services final {
  12. public:
  13. explicit Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system,
  14. std::stop_token token);
  15. ~Services();
  16. };
  17. } // namespace Service