summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-08-06 04:32:13 +0200
committerbunnei <bunneidev@gmail.com>2014-08-07 00:19:59 +0200
commitd4bd2f2e5d38c865777800271a1bbb836034d41b (patch)
tree068659ecc18bf484976a86c4843fee150c1756aa /src/core/hle
parentGSP: Cleaned up command buffer decoding. (diff)
downloadyuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar.gz
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar.bz2
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar.lz
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar.xz
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.tar.zst
yuzu-d4bd2f2e5d38c865777800271a1bbb836034d41b.zip
Diffstat (limited to 'src/core/hle')
-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() {
return Kernel::g_object_pool.GetFast<Thread>(next);
}
-/// Puts the current thread in the wait state for the given type
+/**
+ * Puts the current thread in the wait state for the given type
+ * @param wait_type Type of wait
+ * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread
+ */
void WaitCurrentThread(WaitType wait_type, Handle wait_handle) {
Thread* thread = GetCurrentThread();
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);
/// Gets the current thread handle
Handle GetCurrentThreadHandle();
-/// Puts the current thread in the wait state for the given type
+/**
+ * Puts the current thread in the wait state for the given type
+ * @param wait_type Type of wait
+ * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread
+ */
void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle());
/// Put current thread in a wait state - on WaitSynchronization