aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_thread.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-01 01:04:30 -0800
committerbunnei <bunneidev@gmail.com>2021-01-28 21:42:25 -0800
commiteb396cd021eb37fabaae433cdd4b236f5b5d5b90 (patch)
tree30236fc9d763731f06a8f4397a88200bb31c0318 /src/core/hle/kernel/k_thread.h
parentd49e29d86610afaa142d250fbd618f422e2780ec (diff)
hle: kernel: KThread: Fix ThreadType definition.
Diffstat (limited to 'src/core/hle/kernel/k_thread.h')
-rw-r--r--src/core/hle/kernel/k_thread.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h
index 7dec9449ea..bef480dd7e 100644
--- a/src/core/hle/kernel/k_thread.h
+++ b/src/core/hle/kernel/k_thread.h
@@ -48,10 +48,13 @@ enum ThreadPriority : u32 {
THREADPRIO_COUNT = 64, ///< Total number of possible thread priorities.
};
-enum ThreadType : u32 {
- THREADTYPE_USER = 0x1,
- THREADTYPE_KERNEL = 0x2,
+enum class ThreadType : u32 {
+ Main = 0,
+ Kernel = 1,
+ HighPriority = 2,
+ User = 3,
};
+DECLARE_ENUM_FLAG_OPERATORS(ThreadType);
enum ThreadProcessorId : s32 {
/// Indicates that no particular processor core is preferred.
@@ -307,7 +310,7 @@ public:
}
bool IsKernelThread() const {
- return (type & THREADTYPE_KERNEL) != 0;
+ return type == ThreadType::Kernel;
}
bool WasRunning() const {