Merge pull request #14035 from Dentomologist/pauseandlock_refactoring

PauseAndLock Refactoring
This commit is contained in:
JosJuice
2025-11-01 10:06:08 +01:00
committed by GitHub
12 changed files with 130 additions and 127 deletions
+2 -2
View File
@@ -106,9 +106,9 @@ static void RunWithGPUThreadInactive(std::function<void()> f)
auto& system = Core::System::GetInstance();
const bool was_running = Core::GetState(system) == Core::State::Running;
auto& fifo = system.GetFifo();
fifo.PauseAndLock(true, was_running);
fifo.PauseAndLock();
f();
fifo.PauseAndLock(false, was_running);
fifo.RestoreState(was_running);
}
else
{