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.
This commit is contained in:
parent
63b1453dd8
commit
029ff9f1fd
3 changed files with 24 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue