diff options
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index ddc0d15c5..f02e1d43a 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | #include "core/hle/kernel/wait_object.h" | 15 | #include "core/hle/kernel/wait_object.h" |
| 16 | #include "core/hle/result.h" | 16 | #include "core/hle/result.h" |
| 17 | 17 | ||
| 18 | enum ThreadPriority : s32 { | 18 | enum ThreadPriority : u32 { |
| 19 | THREADPRIO_HIGHEST = 0, ///< Highest thread priority | 19 | THREADPRIO_HIGHEST = 0, ///< Highest thread priority |
| 20 | THREADPRIO_USERLAND_MAX = 24, ///< Highest thread priority for userland apps | 20 | THREADPRIO_USERLAND_MAX = 24, ///< Highest thread priority for userland apps |
| 21 | THREADPRIO_DEFAULT = 48, ///< Default thread priority for userland apps | 21 | THREADPRIO_DEFAULT = 48, ///< Default thread priority for userland apps |
| @@ -82,7 +82,7 @@ public: | |||
| 82 | * Gets the thread's current priority | 82 | * Gets the thread's current priority |
| 83 | * @return The current thread's priority | 83 | * @return The current thread's priority |
| 84 | */ | 84 | */ |
| 85 | s32 GetPriority() const { | 85 | u32 GetPriority() const { |
| 86 | return current_priority; | 86 | return current_priority; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| @@ -90,7 +90,7 @@ public: | |||
| 90 | * Sets the thread's current priority | 90 | * Sets the thread's current priority |
| 91 | * @param priority The new priority | 91 | * @param priority The new priority |
| 92 | */ | 92 | */ |
| 93 | void SetPriority(s32 priority); | 93 | void SetPriority(u32 priority); |
| 94 | 94 | ||
| 95 | /** | 95 | /** |
| 96 | * Boost's a thread's priority to the best priority among the thread's held mutexes. | 96 | * Boost's a thread's priority to the best priority among the thread's held mutexes. |
| @@ -102,7 +102,7 @@ public: | |||
| 102 | * Temporarily boosts the thread's priority until the next time it is scheduled | 102 | * Temporarily boosts the thread's priority until the next time it is scheduled |
| 103 | * @param priority The new priority | 103 | * @param priority The new priority |
| 104 | */ | 104 | */ |
| 105 | void BoostPriority(s32 priority); | 105 | void BoostPriority(u32 priority); |
| 106 | 106 | ||
| 107 | /** | 107 | /** |
| 108 | * Gets the thread's thread ID | 108 | * Gets the thread's thread ID |
| @@ -176,8 +176,8 @@ public: | |||
| 176 | u32 entry_point; | 176 | u32 entry_point; |
| 177 | u32 stack_top; | 177 | u32 stack_top; |
| 178 | 178 | ||
| 179 | s32 nominal_priority; ///< Nominal thread priority, as set by the emulated application | 179 | u32 nominal_priority; ///< Nominal thread priority, as set by the emulated application |
| 180 | s32 current_priority; ///< Current thread priority, can be temporarily changed | 180 | u32 current_priority; ///< Current thread priority, can be temporarily changed |
| 181 | 181 | ||
| 182 | u64 last_running_ticks; ///< CPU tick when thread was last running | 182 | u64 last_running_ticks; ///< CPU tick when thread was last running |
| 183 | 183 | ||
| @@ -219,7 +219,7 @@ private: | |||
| 219 | * @param owner_process The parent process for the main thread | 219 | * @param owner_process The parent process for the main thread |
| 220 | * @return A shared pointer to the main thread | 220 | * @return A shared pointer to the main thread |
| 221 | */ | 221 | */ |
| 222 | SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority, SharedPtr<Process> owner_process); | 222 | SharedPtr<Thread> SetupMainThread(u32 entry_point, u32 priority, SharedPtr<Process> owner_process); |
| 223 | 223 | ||
| 224 | /** | 224 | /** |
| 225 | * Returns whether there are any threads that are ready to run. | 225 | * Returns whether there are any threads that are ready to run. |