summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2020-11-14 22:37:45 -0800
committerGravatar bunnei2020-11-29 01:31:52 -0800
commitc2ad1243baaf25dcb6f9c80121c48ff6da1986cb (patch)
treef0c11f5fb9ba8cf795ee20a763274fe1bf0a1832 /src/core/hle/kernel/thread.cpp
parentcore: arm: Implement InvalidateCacheRange for CPU cache invalidation. (diff)
downloadyuzu-c2ad1243baaf25dcb6f9c80121c48ff6da1986cb.tar.gz
yuzu-c2ad1243baaf25dcb6f9c80121c48ff6da1986cb.tar.xz
yuzu-c2ad1243baaf25dcb6f9c80121c48ff6da1986cb.zip
hle: kernel: thread: Remove unused "Running" state.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 3abe12810..7d1eb2c6e 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -88,10 +88,6 @@ void Thread::ResumeFromWait() {
88 // before actually resuming. We can ignore subsequent wakeups if the thread status has 88 // before actually resuming. We can ignore subsequent wakeups if the thread status has
89 // already been set to ThreadStatus::Ready. 89 // already been set to ThreadStatus::Ready.
90 return; 90 return;
91
92 case ThreadStatus::Running:
93 DEBUG_ASSERT_MSG(false, "Thread with object id {} has already resumed.", GetObjectId());
94 return;
95 case ThreadStatus::Dead: 91 case ThreadStatus::Dead:
96 // This should never happen, as threads must complete before being stopped. 92 // This should never happen, as threads must complete before being stopped.
97 DEBUG_ASSERT_MSG(false, "Thread with object id {} cannot be resumed because it's DEAD.", 93 DEBUG_ASSERT_MSG(false, "Thread with object id {} cannot be resumed because it's DEAD.",
@@ -260,7 +256,6 @@ void Thread::SetStatus(ThreadStatus new_status) {
260 256
261 switch (new_status) { 257 switch (new_status) {
262 case ThreadStatus::Ready: 258 case ThreadStatus::Ready:
263 case ThreadStatus::Running:
264 SetSchedulingStatus(ThreadSchedStatus::Runnable); 259 SetSchedulingStatus(ThreadSchedStatus::Runnable);
265 break; 260 break;
266 case ThreadStatus::Dormant: 261 case ThreadStatus::Dormant: