mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
Revert "Core: Only unlock CPU thread if CPUThreadGuard locked it"
This reverts commit 522470274d
.
This commit is contained in:
parent
eb63ea3f40
commit
13ea2c77ff
2 changed files with 3 additions and 4 deletions
|
@ -1050,15 +1050,15 @@ void UpdateInputGate(bool require_focus, bool require_full_focus)
|
|||
}
|
||||
|
||||
CPUThreadGuard::CPUThreadGuard(Core::System& system)
|
||||
: m_system(system), m_was_cpu_thread(IsCPUThread()), m_has_cpu_thread(IsRunningAndStarted())
|
||||
: m_system(system), m_was_cpu_thread(IsCPUThread())
|
||||
{
|
||||
if (m_has_cpu_thread && !m_was_cpu_thread)
|
||||
if (!m_was_cpu_thread)
|
||||
m_was_unpaused = PauseAndLock(system, true, true);
|
||||
}
|
||||
|
||||
CPUThreadGuard::~CPUThreadGuard()
|
||||
{
|
||||
if (m_has_cpu_thread && !m_was_cpu_thread)
|
||||
if (!m_was_cpu_thread)
|
||||
PauseAndLock(m_system, false, m_was_unpaused);
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,6 @@ public:
|
|||
private:
|
||||
Core::System& m_system;
|
||||
const bool m_was_cpu_thread;
|
||||
const bool m_has_cpu_thread;
|
||||
bool m_was_unpaused = false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue