summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-08-05 22:32:13 -0400
committerGravatar bunnei2014-08-06 18:19:59 -0400
commitd4bd2f2e5d38c865777800271a1bbb836034d41b (patch)
tree068659ecc18bf484976a86c4843fee150c1756aa /src
parentGSP: Cleaned up command buffer decoding. (diff)
downloadyuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar.gz
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar.xz
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.zip
Thread: Added more descriptive comment to WaitCurrentThread.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/thread.cpp6
-rw-r--r--src/core/hle/kernel/thread.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 86bbf29d0..1d7ded6f6 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -274,7 +274,11 @@ Thread* NextThread() {
274 return Kernel::g_object_pool.GetFast<Thread>(next); 274 return Kernel::g_object_pool.GetFast<Thread>(next);
275} 275}
276 276
277/// Puts the current thread in the wait state for the given type 277/**
278 * Puts the current thread in the wait state for the given type
279 * @param wait_type Type of wait
280 * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread
281 */
278void WaitCurrentThread(WaitType wait_type, Handle wait_handle) { 282void WaitCurrentThread(WaitType wait_type, Handle wait_handle) {
279 Thread* thread = GetCurrentThread(); 283 Thread* thread = GetCurrentThread();
280 thread->wait_type = wait_type; 284 thread->wait_type = wait_type;
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index f2bfdfa1a..39fa38b75 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -69,7 +69,11 @@ void ArbitrateAllThreads(u32 arbiter, u32 address);
69/// Gets the current thread handle 69/// Gets the current thread handle
70Handle GetCurrentThreadHandle(); 70Handle GetCurrentThreadHandle();
71 71
72/// Puts the current thread in the wait state for the given type 72/**
73 * Puts the current thread in the wait state for the given type
74 * @param wait_type Type of wait
75 * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread
76 */
73void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); 77void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle());
74 78
75/// Put current thread in a wait state - on WaitSynchronization 79/// Put current thread in a wait state - on WaitSynchronization