diff options
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 2a43797ee..ce63a70d3 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/hle/kernel/kernel.h" | 8 | #include "core/hle/kernel/kernel.h" |
| 9 | #include "core/hle/result.h" | ||
| 9 | 10 | ||
| 10 | enum ThreadPriority { | 11 | enum ThreadPriority { |
| 11 | THREADPRIO_HIGHEST = 0, ///< Highest thread priority | 12 | THREADPRIO_HIGHEST = 0, ///< Highest thread priority |
| @@ -55,7 +56,7 @@ Handle SetupMainThread(s32 priority, int stack_size=Kernel::DEFAULT_STACK_SIZE); | |||
| 55 | void Reschedule(); | 56 | void Reschedule(); |
| 56 | 57 | ||
| 57 | /// Stops the current thread | 58 | /// Stops the current thread |
| 58 | void StopThread(Handle thread, const char* reason); | 59 | ResultCode StopThread(Handle thread, const char* reason); |
| 59 | 60 | ||
| 60 | /// Resumes a thread from waiting by marking it as "ready" | 61 | /// Resumes a thread from waiting by marking it as "ready" |
| 61 | void ResumeThreadFromWait(Handle handle); | 62 | void ResumeThreadFromWait(Handle handle); |
| @@ -80,10 +81,10 @@ void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHa | |||
| 80 | void WaitThread_Synchronization(); | 81 | void WaitThread_Synchronization(); |
| 81 | 82 | ||
| 82 | /// Get the priority of the thread specified by handle | 83 | /// Get the priority of the thread specified by handle |
| 83 | u32 GetThreadPriority(const Handle handle); | 84 | ResultVal<u32> GetThreadPriority(const Handle handle); |
| 84 | 85 | ||
| 85 | /// Set the priority of the thread specified by handle | 86 | /// Set the priority of the thread specified by handle |
| 86 | Result SetThreadPriority(Handle handle, s32 priority); | 87 | ResultCode SetThreadPriority(Handle handle, s32 priority); |
| 87 | 88 | ||
| 88 | /// Initialize threading | 89 | /// Initialize threading |
| 89 | void ThreadingInit(); | 90 | void ThreadingInit(); |