summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 5f1d5c400..189f7d5f5 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -147,7 +147,7 @@ void CallThread(Thread* t) {
147} 147}
148 148
149/// Switches CPU context to that of the specified thread 149/// Switches CPU context to that of the specified thread
150void SwitchContext(Thread* t, const char* reason) { 150void SwitchContext(Thread* t) {
151 Thread* cur = GetCurrentThread(); 151 Thread* cur = GetCurrentThread();
152 152
153 // Save context for current thread 153 // Save context for current thread
@@ -299,11 +299,11 @@ Handle SetupMainThread(s32 priority, int stack_size) {
299} 299}
300 300
301/// Reschedules to the next available thread (call after current thread is suspended) 301/// Reschedules to the next available thread (call after current thread is suspended)
302void Reschedule(const char* reason) { 302void Reschedule() {
303 Thread* prev = GetCurrentThread(); 303 Thread* prev = GetCurrentThread();
304 Thread* next = NextThread(); 304 Thread* next = NextThread();
305 if (next > 0) { 305 if (next > 0) {
306 SwitchContext(next, reason); 306 SwitchContext(next);
307 307
308 // Hack - automatically change previous thread (which would have been in "wait" state) to 308 // Hack - automatically change previous thread (which would have been in "wait" state) to
309 // "ready" state, so that we can immediately resume to it when new thread yields. FixMe to 309 // "ready" state, so that we can immediately resume to it when new thread yields. FixMe to