diff options
| author | bunnei <bunneidev@gmail.com> | 2022-06-13 15:48:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-13 15:48:03 -0700 |
| commit | 9cd39d1880ccb691c56a7d22edd76cf923d40bd1 (patch) | |
| tree | d309493a62422a627f7b42aa5f582ce55b68e123 /src/core/hle/kernel/kernel.cpp | |
| parent | 9f2fca7cdedbf58ad0ba974cd5afd8394c508d09 (diff) | |
| parent | 5772327b39b9bd3e36ff66dce9d4d67565700828 (diff) | |
Merge pull request #8388 from liamwhite/simpler-pause
CpuManager: simplify pausing
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 92f6d8c49c..7eb9619129 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -252,6 +252,7 @@ struct KernelCore::Impl { core_id) .IsSuccess()); suspend_threads[core_id]->SetName(fmt::format("SuspendThread:{}", core_id)); + suspend_threads[core_id]->DisableDispatch(); } } @@ -1073,9 +1074,6 @@ 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(); - } } } } |
