summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/thread.cpp6
-rw-r--r--src/core/hle/kernel/thread.h2
2 files changed, 4 insertions, 4 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
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index a9e9eb95f..d54f47aaf 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -51,7 +51,7 @@ Handle CreateThread(const char* name, u32 entry_point, s32 priority, u32 arg, s3
51Handle SetupMainThread(s32 priority, int stack_size=Kernel::DEFAULT_STACK_SIZE); 51Handle SetupMainThread(s32 priority, int stack_size=Kernel::DEFAULT_STACK_SIZE);
52 52
53/// Reschedules to the next available thread (call after current thread is suspended) 53/// Reschedules to the next available thread (call after current thread is suspended)
54void Reschedule(const char* reason); 54void Reschedule();
55 55
56/// Puts a thread in the wait state for the given type/reason 56/// Puts a thread in the wait state for the given type/reason
57void WaitCurThread(WaitType wait_type, const char* reason); 57void WaitCurThread(WaitType wait_type, const char* reason);