diff options
| author | 2014-12-04 08:13:53 -0500 | |
|---|---|---|
| committer | 2014-12-04 08:13:53 -0500 | |
| commit | ef1d5cda06deac153582766fa9fc4074cb91f3d5 (patch) | |
| tree | d4000cfa7373423ba38cab7e74ee396817083dc5 /src/core/hle/kernel/thread.h | |
| parent | SVC: Implemented GetThreadId. (diff) | |
| download | yuzu-ef1d5cda06deac153582766fa9fc4074cb91f3d5.tar.gz yuzu-ef1d5cda06deac153582766fa9fc4074cb91f3d5.tar.xz yuzu-ef1d5cda06deac153582766fa9fc4074cb91f3d5.zip | |
Threads: Implemented a sequential thread id
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index e87867ac0..53a19d779 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -58,7 +58,12 @@ void Reschedule(); | |||
| 58 | /// Stops the current thread | 58 | /// Stops the current thread |
| 59 | ResultCode StopThread(Handle thread, const char* reason); | 59 | ResultCode StopThread(Handle thread, const char* reason); |
| 60 | 60 | ||
| 61 | // Retrieves the thread id of the specified thread handle | 61 | /** |
| 62 | * Retrieves the ID of the specified thread handle | ||
| 63 | * @param thread_id Will contain the output thread id | ||
| 64 | * @param handle Handle to the thread we want | ||
| 65 | * @return Whether the function was successful or not | ||
| 66 | */ | ||
| 62 | ResultCode GetThreadId(u32* thread_id, Handle handle); | 67 | ResultCode GetThreadId(u32* thread_id, Handle handle); |
| 63 | 68 | ||
| 64 | /// Resumes a thread from waiting by marking it as "ready" | 69 | /// Resumes a thread from waiting by marking it as "ready" |