Merge pull request #14035 from Dentomologist/pauseandlock_refactoring
PauseAndLock Refactoring
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user