summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-22 19:36:56 -0400
committerGravatar bunnei2014-05-22 19:36:56 -0400
commitb99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe (patch)
treedf05518971810d04f48a9e38505e487b5d29c323 /src/core/hle/kernel/thread.cpp
parentthread: removed unused SwitchContext/Reschedule reason field, added missing a... (diff)
downloadyuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar.gz
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.tar.xz
yuzu-b99ac2c3d67e2bcaa2c6eac220f1e93f4576c4fe.zip
thread: renamed "WaitCurThread" to "WaitCurrentThread", removed unused "reason" argument
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp4
1 files changed, 2 insertions, 2 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() {
186 return Kernel::g_object_pool.GetFast<Thread>(next); 186 return Kernel::g_object_pool.GetFast<Thread>(next);
187} 187}
188 188
189/// Puts a thread in the wait state for the given type/reason 189/// Puts the current thread in the wait state for the given type
190void WaitCurThread(WaitType wait_type, const char* reason) { 190void WaitCurrentThread(WaitType wait_type) {
191 Thread* t = GetCurrentThread(); 191 Thread* t = GetCurrentThread();
192 t->wait_type = wait_type; 192 t->wait_type = wait_type;
193 ChangeThreadState(t, ThreadStatus(THREADSTATUS_WAIT | (t->status & THREADSTATUS_SUSPEND))); 193 ChangeThreadState(t, ThreadStatus(THREADSTATUS_WAIT | (t->status & THREADSTATUS_SUSPEND)));