summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-06-06 20:05:16 -0400
committerGravatar bunnei2014-06-13 09:51:14 -0400
commitbfdd874b1f3a7af9ec540105ed1d52edc0d72472 (patch)
treee534660ab94eee428a1d77b8c5f4e1c2df6b82db /src/core/hle/kernel/thread.cpp
parentThread: Updated VerifyWait to be more readable (but functionally the same). (diff)
downloadyuzu-bfdd874b1f3a7af9ec540105ed1d52edc0d72472.tar.gz
yuzu-bfdd874b1f3a7af9ec540105ed1d52edc0d72472.tar.xz
yuzu-bfdd874b1f3a7af9ec540105ed1d52edc0d72472.zip
Thread: Moved position of * in arguments.
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 0385a64fd..cb5b89379 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -145,7 +145,7 @@ void ChangeReadyState(Thread* t, bool ready) {
145/// Verify that a thread has not been released from waiting 145/// Verify that a thread has not been released from waiting
146inline bool VerifyWait(const Handle& thread, WaitType type, Handle handle) { 146inline bool VerifyWait(const Handle& thread, WaitType type, Handle handle) {
147 Handle wait_id = 0; 147 Handle wait_id = 0;
148 Thread *t = g_object_pool.GetFast<Thread>(thread); 148 Thread* t = g_object_pool.GetFast<Thread>(thread);
149 if (t != nullptr && type == t->wait_type && handle == t->wait_handle) { 149 if (t != nullptr && type == t->wait_type && handle == t->wait_handle) {
150 return true; 150 return true;
151 } else { 151 } else {
@@ -158,7 +158,7 @@ inline bool VerifyWait(const Handle& thread, WaitType type, Handle handle) {
158/// Stops the current thread 158/// Stops the current thread
159void StopThread(Handle thread, const char* reason) { 159void StopThread(Handle thread, const char* reason) {
160 u32 error; 160 u32 error;
161 Thread *t = g_object_pool.Get<Thread>(thread, error); 161 Thread* t = g_object_pool.Get<Thread>(thread, error);
162 if (t) { 162 if (t) {
163 ChangeReadyState(t, false); 163 ChangeReadyState(t, false);
164 t->status = THREADSTATUS_DORMANT; 164 t->status = THREADSTATUS_DORMANT;