diff options
author | Subv <subv2112@gmail.com> | 2014-12-03 23:22:06 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-04 00:25:35 -0500 |
commit | 029ff9f1fd013ec46f3d61510c5f95f05bca698e (patch) | |
tree | 17177b27e64fa60c0c1847ba02e8ae187f0eebad /src/core/hle/kernel/thread.h | |
parent | 63b1453dd8f0f579929fe7341f559b916cebcc2b (diff) |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index ce63a70d..e87867ac 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h @@ -58,6 +58,9 @@ void Reschedule(); /// Stops the current thread ResultCode StopThread(Handle thread, const char* reason); +// Retrieves the thread id of the specified thread handle +ResultCode GetThreadId(u32* thread_id, Handle handle); + /// Resumes a thread from waiting by marking it as "ready" void ResumeThreadFromWait(Handle handle); |