aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-04 22:15:03 -0500
committerbunnei <bunneidev@gmail.com>2014-12-04 22:15:03 -0500
commit17fae11fc7cf9392bb93dd2a1dc26a479ca75ed1 (patch)
tree5106fe8f907b9d7f8f04331cee815f25f03c0d6f /src/core/hle/kernel/thread.h
parent5056329a8003115f61859b97c2fc6ef2f460a0d3 (diff)
parent6fac2bf0ab5fa51c6b2228d6fa64752793f38965 (diff)
Merge pull request #250 from Subv/cbranch_2
SVC: Implemented GetThreadId.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index ce63a70d3..53a19d779 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -58,6 +58,14 @@ void Reschedule();
/// Stops the current thread
ResultCode StopThread(Handle thread, const char* reason);
+/**
+ * Retrieves the ID of the specified thread handle
+ * @param thread_id Will contain the output thread id
+ * @param handle Handle to the thread we want
+ * @return Whether the function was successful or not
+ */
+ResultCode GetThreadId(u32* thread_id, Handle handle);
+
/// Resumes a thread from waiting by marking it as "ready"
void ResumeThreadFromWait(Handle handle);