summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-23 01:32:45 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-23 01:32:45 +0200
commit7c0b0060764e75738bc9d4417d0bfd510e54ae4e (patch)
treefef5fa5c699f01731d6549f22601e9d8f5d88465 /src/core/hle/kernel
parentkernel: refactored function naming to remove "__" prefix (diff)
downloadyuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.gz
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.bz2
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.lz
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.xz
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.tar.zst
yuzu-7c0b0060764e75738bc9d4417d0bfd510e54ae4e.zip
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) {
}
/// Switches CPU context to that of the specified thread
-void SwitchContext(Thread* t, const char* reason) {
+void SwitchContext(Thread* t) {
Thread* cur = GetCurrentThread();
// Save context for current thread
@@ -299,11 +299,11 @@ Handle SetupMainThread(s32 priority, int stack_size) {
}
/// Reschedules to the next available thread (call after current thread is suspended)
-void Reschedule(const char* reason) {
+void Reschedule() {
Thread* prev = GetCurrentThread();
Thread* next = NextThread();
if (next > 0) {
- SwitchContext(next, reason);
+ SwitchContext(next);
// Hack - automatically change previous thread (which would have been in "wait" state) to
// "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
Handle SetupMainThread(s32 priority, int stack_size=Kernel::DEFAULT_STACK_SIZE);
/// Reschedules to the next available thread (call after current thread is suspended)
-void Reschedule(const char* reason);
+void Reschedule();
/// Puts a thread in the wait state for the given type/reason
void WaitCurThread(WaitType wait_type, const char* reason);