summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-28 22:36:24 +0100
committerbunnei <bunneidev@gmail.com>2021-01-11 23:23:16 +0100
commitd1309fb275ee478fcdbf036976cce3dafa09206e (patch)
treefd78d3bf8fa749f5ed56d83611cf316a2b046d91 /src
parenthle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState. (diff)
downloadyuzu-d1309fb275ee478fcdbf036976cce3dafa09206e.tar
yuzu-d1309fb275ee478fcdbf036976cce3dafa09206e.tar.gz
yuzu-d1309fb275ee478fcdbf036976cce3dafa09206e.tar.bz2
yuzu-d1309fb275ee478fcdbf036976cce3dafa09206e.tar.lz
yuzu-d1309fb275ee478fcdbf036976cce3dafa09206e.tar.xz
yuzu-d1309fb275ee478fcdbf036976cce3dafa09206e.tar.zst
yuzu-d1309fb275ee478fcdbf036976cce3dafa09206e.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/kernel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index af4a5e33d..8d03f16fb 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -602,9 +602,9 @@ void KernelCore::Suspend(bool in_suspention) {
const bool should_suspend = exception_exited || in_suspention;
{
KScopedSchedulerLock lock(*this);
- const auto status = should_suspend ? ThreadState::Runnable : ThreadState::Waiting;
+ const auto state = should_suspend ? ThreadState::Runnable : ThreadState::Waiting;
for (std::size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) {
- impl->suspend_threads[i]->SetState(status);
+ impl->suspend_threads[i]->SetState(state);
}
}
}