summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar Subv2014-12-03 23:22:06 -0500
committerGravatar Subv2014-12-04 00:25:35 -0500
commit029ff9f1fd013ec46f3d61510c5f95f05bca698e (patch)
tree17177b27e64fa60c0c1847ba02e8ae187f0eebad /src/core/hle/kernel/thread.h
parentMerge pull request #236 from rohit-n/sign-compare (diff)
downloadyuzu-029ff9f1fd013ec46f3d61510c5f95f05bca698e.tar.gz
yuzu-029ff9f1fd013ec46f3d61510c5f95f05bca698e.tar.xz
yuzu-029ff9f1fd013ec46f3d61510c5f95f05bca698e.zip
SVC: Implemented GetThreadId.
For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index ce63a70d3..e87867ac0 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -58,6 +58,9 @@ void Reschedule();
58/// Stops the current thread 58/// Stops the current thread
59ResultCode StopThread(Handle thread, const char* reason); 59ResultCode StopThread(Handle thread, const char* reason);
60 60
61// Retrieves the thread id of the specified thread handle
62ResultCode GetThreadId(u32* thread_id, Handle handle);
63
61/// Resumes a thread from waiting by marking it as "ready" 64/// Resumes a thread from waiting by marking it as "ready"
62void ResumeThreadFromWait(Handle handle); 65void ResumeThreadFromWait(Handle handle);
63 66