diff options
| author | 2020-12-28 13:16:43 -0800 | |
|---|---|---|
| committer | 2021-01-11 14:23:16 -0800 | |
| commit | c3c43e32fcf198444acb493483e03fcb193156df (patch) | |
| tree | a516e116d7dbb9309b0adbfa2e3660861ff4e6b7 /src/core/hle/kernel/kernel.cpp | |
| parent | core: hle: kernel: Add some useful functions for checking kernel addresses. (diff) | |
| download | yuzu-c3c43e32fcf198444acb493483e03fcb193156df.tar.gz yuzu-c3c43e32fcf198444acb493483e03fcb193156df.tar.xz yuzu-c3c43e32fcf198444acb493483e03fcb193156df.zip | |
hle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState.
- This is how the real kernel works, and is more accurate and simpler.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index f1dcbe2eb..af4a5e33d 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -602,7 +602,7 @@ void KernelCore::Suspend(bool in_suspention) { | |||
| 602 | const bool should_suspend = exception_exited || in_suspention; | 602 | const bool should_suspend = exception_exited || in_suspention; |
| 603 | { | 603 | { |
| 604 | KScopedSchedulerLock lock(*this); | 604 | KScopedSchedulerLock lock(*this); |
| 605 | ThreadStatus status = should_suspend ? ThreadStatus::Ready : ThreadStatus::WaitSleep; | 605 | const auto status = should_suspend ? ThreadState::Runnable : ThreadState::Waiting; |
| 606 | for (std::size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { | 606 | for (std::size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { |
| 607 | impl->suspend_threads[i]->SetState(status); | 607 | impl->suspend_threads[i]->SetState(status); |
| 608 | } | 608 | } |