diff options
author | Liam <byteslice@airmail.cc> | 2022-05-28 02:44:45 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-09 03:47:29 +0200 |
commit | af022294dd7240a3199794e43dd8997fd0dbc136 (patch) | |
tree | cb2b6f5199829dec982fc8e20fc7f8167ceee596 /src/core/hle | |
parent | Merge pull request #8428 from bunnei/nvflinger-fix-timing (diff) | |
download | yuzu-af022294dd7240a3199794e43dd8997fd0dbc136.tar yuzu-af022294dd7240a3199794e43dd8997fd0dbc136.tar.gz yuzu-af022294dd7240a3199794e43dd8997fd0dbc136.tar.bz2 yuzu-af022294dd7240a3199794e43dd8997fd0dbc136.tar.lz yuzu-af022294dd7240a3199794e43dd8997fd0dbc136.tar.xz yuzu-af022294dd7240a3199794e43dd8997fd0dbc136.tar.zst yuzu-af022294dd7240a3199794e43dd8997fd0dbc136.zip |
Diffstat (limited to 'src/core/hle')
-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 92f6d8c49..7eb961912 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(); - } } } } |