diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 08:43:26 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-08-07 21:18:47 +0200 |
commit | 5051d3c4159adabe4c3e8b9233a524894eed6808 (patch) | |
tree | 47f97f82de68bfd25e4f33eb127682b226460ef8 /src/core/hle | |
parent | core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling. (diff) | |
download | yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar.gz yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar.bz2 yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar.lz yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar.xz yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar.zst yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 2a984b913..8673384ee 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -1024,6 +1024,9 @@ void KernelCore::Suspend(bool in_suspention) { impl->suspend_threads[core_id]->SetState(state); impl->suspend_threads[core_id]->SetWaitReasonForDebugging( ThreadWaitReasonForDebugging::Suspended); + if (!should_suspend) { + impl->suspend_threads[core_id]->DisableDispatch(); + } } } } |