diff options
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.h | 2 |
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 |
| 150 | void SwitchContext(Thread* t, const char* reason) { | 150 | void 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) |
| 302 | void Reschedule(const char* reason) { | 302 | void 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 | |||
| 51 | Handle SetupMainThread(s32 priority, int stack_size=Kernel::DEFAULT_STACK_SIZE); | 51 | Handle 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) |
| 54 | void Reschedule(const char* reason); | 54 | void 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 |
| 57 | void WaitCurThread(WaitType wait_type, const char* reason); | 57 | void WaitCurThread(WaitType wait_type, const char* reason); |