mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Core: Remove RunAsCPUThread
It's a fine function, but CPUThreadGuard is more vogue. Also, its potential for being confused with RunOnCPUThread will not be missed.
This commit is contained in:
@ -112,9 +112,9 @@ static void RunWithGPUThreadInactive(std::function<void()> f)
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we reach here, we can call Core::PauseAndLock (which we do using RunAsCPUThread).
|
||||
|
||||
Core::RunAsCPUThread(std::move(f));
|
||||
// If we reach here, we can call Core::PauseAndLock (which we do using a CPUThreadGuard).
|
||||
const Core::CPUThreadGuard guard(Core::System::GetInstance());
|
||||
f();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user