mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-28 13:50:22 -05:00
JitInterface::ClearCache: Modernize With CPUThreadGuard
It is recommended to view this diff with whitespace changes hidden.
This commit is contained in:
@@ -1753,7 +1753,8 @@ void MenuBar::PatchHLEFunctions()
|
||||
|
||||
void MenuBar::ClearCache()
|
||||
{
|
||||
Core::RunAsCPUThread([] { Core::System::GetInstance().GetJitInterface().ClearCache(); });
|
||||
auto& system = Core::System::GetInstance();
|
||||
system.GetJitInterface().ClearCache(Core::CPUThreadGuard{system});
|
||||
}
|
||||
|
||||
void MenuBar::LogInstructions()
|
||||
|
||||
Reference in New Issue
Block a user