1
0
Fork 0
forked from suyu/suyu

core: hle: kernel: DisableDispatch on suspend threads.

This commit is contained in:
bunnei 2021-08-06 23:43:26 -07:00
parent 284015dfd7
commit 3239442de6

View file

@ -1055,6 +1055,9 @@ void KernelCore::Suspend(bool in_suspention) {
impl->suspend_threads[core_id]->SetState(state); impl->suspend_threads[core_id]->SetState(state);
impl->suspend_threads[core_id]->SetWaitReasonForDebugging( impl->suspend_threads[core_id]->SetWaitReasonForDebugging(
ThreadWaitReasonForDebugging::Suspended); ThreadWaitReasonForDebugging::Suspended);
if (!should_suspend) {
impl->suspend_threads[core_id]->DisableDispatch();
}
} }
} }
} }