Core: Add System parameter to CPUThreadGuard.

This commit is contained in:
Admiral H. Curtiss committed 2023-03-08 22:41:42 +01:00
1 parent c592c94395
commit 912cd456fb
21 files changed
+86 -74

No files matched your search

+2 -1
View File
@@ -108,7 +108,7 @@ enum class ConsoleType : u32
class CPUThreadGuard final
{
public:
CPUThreadGuard();
explicit CPUThreadGuard(Core::System& system);
~CPUThreadGuard();
CPUThreadGuard(const CPUThreadGuard&) = delete;
@@ -117,6 +117,7 @@ public:
CPUThreadGuard& operator=(CPUThreadGuard&&) = delete;
private:
Core::System& m_system;
const bool m_was_cpu_thread;
bool m_was_unpaused = false;
};