diff options
| author | 2021-08-06 23:43:26 -0700 | |
|---|---|---|
| committer | 2021-08-07 12:18:47 -0700 | |
| commit | 5051d3c4159adabe4c3e8b9233a524894eed6808 (patch) | |
| tree | 47f97f82de68bfd25e4f33eb127682b226460ef8 /src/core/hle/kernel/kernel.cpp | |
| parent | core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling. (diff) | |
| download | yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar.gz yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.tar.xz yuzu-5051d3c4159adabe4c3e8b9233a524894eed6808.zip | |
core: hle: kernel: DisableDispatch on suspend threads.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -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) { | |||
| 1024 | impl->suspend_threads[core_id]->SetState(state); | 1024 | impl->suspend_threads[core_id]->SetState(state); |
| 1025 | impl->suspend_threads[core_id]->SetWaitReasonForDebugging( | 1025 | impl->suspend_threads[core_id]->SetWaitReasonForDebugging( |
| 1026 | ThreadWaitReasonForDebugging::Suspended); | 1026 | ThreadWaitReasonForDebugging::Suspended); |
| 1027 | if (!should_suspend) { | ||
| 1028 | impl->suspend_threads[core_id]->DisableDispatch(); | ||
| 1029 | } | ||
| 1027 | } | 1030 | } |
| 1028 | } | 1031 | } |
| 1029 | } | 1032 | } |