VERY experimental Nintendo Switch 2 emulator
C++
Thread: Added more descriptive comment to WaitCurrentThread.
bunneid4bd2f2e5d38
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 86bbf29d05..1d7ded6f6b 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.hindex f2bfdfa1a2..39fa38b757 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 handleHandle 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