summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorSebastian Valle <subv2112@gmail.com>2017-09-30 15:22:14 +0200
committerGitHub <noreply@github.com>2017-09-30 15:22:14 +0200
commita3de996ae7c41bb8d475b47dcd08abdd571cfc73 (patch)
tree016f6866d15fb9a41a15666f492bed352d95b523 /src/core/hle/kernel/thread.h
parentMerge pull request #2961 from Subv/load_titles (diff)
parentFixed type conversion ambiguity (diff)
downloadyuzu-a3de996ae7c41bb8d475b47dcd08abdd571cfc73.tar
yuzu-a3de996ae7c41bb8d475b47dcd08abdd571cfc73.tar.gz
yuzu-a3de996ae7c41bb8d475b47dcd08abdd571cfc73.tar.bz2
yuzu-a3de996ae7c41bb8d475b47dcd08abdd571cfc73.tar.lz
yuzu-a3de996ae7c41bb8d475b47dcd08abdd571cfc73.tar.xz
yuzu-a3de996ae7c41bb8d475b47dcd08abdd571cfc73.tar.zst
yuzu-a3de996ae7c41bb8d475b47dcd08abdd571cfc73.zip
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h14
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 @@
#include "core/hle/kernel/wait_object.h"
#include "core/hle/result.h"
-enum ThreadPriority : s32 {
+enum ThreadPriority : u32 {
THREADPRIO_HIGHEST = 0, ///< Highest thread priority
THREADPRIO_USERLAND_MAX = 24, ///< Highest thread priority for userland apps
THREADPRIO_DEFAULT = 48, ///< Default thread priority for userland apps
@@ -82,7 +82,7 @@ public:
* Gets the thread's current priority
* @return The current thread's priority
*/
- s32 GetPriority() const {
+ u32 GetPriority() const {
return current_priority;
}
@@ -90,7 +90,7 @@ public:
* Sets the thread's current priority
* @param priority The new priority
*/
- void SetPriority(s32 priority);
+ void SetPriority(u32 priority);
/**
* Boost's a thread's priority to the best priority among the thread's held mutexes.
@@ -102,7 +102,7 @@ public:
* Temporarily boosts the thread's priority until the next time it is scheduled
* @param priority The new priority
*/
- void BoostPriority(s32 priority);
+ void BoostPriority(u32 priority);
/**
* Gets the thread's thread ID
@@ -176,8 +176,8 @@ public:
u32 entry_point;
u32 stack_top;
- s32 nominal_priority; ///< Nominal thread priority, as set by the emulated application
- s32 current_priority; ///< Current thread priority, can be temporarily changed
+ u32 nominal_priority; ///< Nominal thread priority, as set by the emulated application
+ u32 current_priority; ///< Current thread priority, can be temporarily changed
u64 last_running_ticks; ///< CPU tick when thread was last running
@@ -219,7 +219,7 @@ private:
* @param owner_process The parent process for the main thread
* @return A shared pointer to the main thread
*/
-SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority, SharedPtr<Process> owner_process);
+SharedPtr<Thread> SetupMainThread(u32 entry_point, u32 priority, SharedPtr<Process> owner_process);
/**
* Returns whether there are any threads that are ready to run.