summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-22 19:32:45 -0400
committerGravatar bunnei2014-05-22 19:32:45 -0400
commit7c0b0060764e75738bc9d4417d0bfd510e54ae4e (patch)
treefef5fa5c699f01731d6549f22601e9d8f5d88465 /src/core/hle/kernel/thread.cpp
parentkernel: refactored function naming to remove "__" prefix (diff)
downloadyuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.gz
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.xz
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.zip
thread: removed unused SwitchContext/Reschedule reason field, added missing arg parameter to SVC CreateThread
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