diff options
| author | 2021-08-06 23:43:26 -0700 | |
|---|---|---|
| committer | 2021-12-06 16:39:16 -0800 | |
| commit | 3239442de6204f41054b8c0121420e64f66c832e (patch) | |
| tree | c8793d5fb424fa37ec217bcb84557538963f9939 /src/core/hle/kernel/kernel.cpp | |
| parent | core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling. (diff) | |
| download | yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar.gz yuzu-3239442de6204f41054b8c0121420e64f66c832e.tar.xz yuzu-3239442de6204f41054b8c0121420e64f66c832e.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 288488644..cf155ff66 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -1055,6 +1055,9 @@ void KernelCore::Suspend(bool in_suspention) { | |||
| 1055 | impl->suspend_threads[core_id]->SetState(state); | 1055 | impl->suspend_threads[core_id]->SetState(state); |
| 1056 | impl->suspend_threads[core_id]->SetWaitReasonForDebugging( | 1056 | impl->suspend_threads[core_id]->SetWaitReasonForDebugging( |
| 1057 | ThreadWaitReasonForDebugging::Suspended); | 1057 | ThreadWaitReasonForDebugging::Suspended); |
| 1058 | if (!should_suspend) { | ||
| 1059 | impl->suspend_threads[core_id]->DisableDispatch(); | ||
| 1060 | } | ||
| 1058 | } | 1061 | } |
| 1059 | } | 1062 | } |
| 1060 | } | 1063 | } |