mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
jit: Lock around changes to the jit pointer.
This commit is contained in:
1 parent
0c6c2fb47a
commit
b8ab7f39df
17 files changed
+87
-33
No files matched your search
@@ -136,6 +136,7 @@ void CwCheatScreen::onFinish(DialogResult result) {
|
||||
if (result != DR_BACK) // This only works for BACK here.
|
||||
return;
|
||||
|
||||
std::lock_guard<std::recursive_mutex> guard(MIPSComp::jitLock);
|
||||
if (MIPSComp::jit) {
|
||||
MIPSComp::jit->ClearCache();
|
||||
}
|
||||
@@ -167,6 +168,7 @@ UI::EventReturn CwCheatScreen::OnAddCheat(UI::EventParams ¶ms) {
|
||||
|
||||
UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams ¶ms) {
|
||||
g_Config.bReloadCheats = true;
|
||||
std::lock_guard<std::recursive_mutex> guard(MIPSComp::jitLock);
|
||||
if (MIPSComp::jit) {
|
||||
MIPSComp::jit->ClearCache();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user