summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-23 01:36:56 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-23 01:36:56 +0200
commitb99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe (patch)
treedf05518971810d04f48a9e38505e487b5d29c323 /src/core/hle/kernel
parentthread: removed unused SwitchContext/Reschedule reason field, added missing arg parameter to SVC CreateThread (diff)
downloadyuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar.gz
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar.bz2
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar.lz
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar.xz
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar.zst
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/thread.cpp4
-rw-r--r--src/core/hle/kernel/thread.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 189f7d5f5..bf4c8353c 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -186,8 +186,8 @@ Thread* NextThread() {
return Kernel::g_object_pool.GetFast<Thread>(next);
}
-/// Puts a thread in the wait state for the given type/reason
-void WaitCurThread(WaitType wait_type, const char* reason) {
+/// Puts the current thread in the wait state for the given type
+void WaitCurrentThread(WaitType wait_type) {
Thread* t = GetCurrentThread();
t->wait_type = wait_type;
ChangeThreadState(t, ThreadStatus(THREADSTATUS_WAIT | (t->status & THREADSTATUS_SUSPEND)));
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index d54f47aaf..9628f165d 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -53,8 +53,8 @@ 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();
-/// Puts a thread in the wait state for the given type/reason
-void WaitCurThread(WaitType wait_type, const char* reason);
+/// Puts the current thread in the wait state for the given type
+void WaitCurrentThread(WaitType wait_type);
/// Resumes a thread from waiting by marking it as "ready"
void ResumeThreadFromWait(Handle handle);