diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-01 10:04:30 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:25 +0100 |
commit | 0530292b9768637aa6e2875e931c1066af4aa80e (patch) | |
tree | 30236fc9d763731f06a8f4397a88200bb31c0318 /src/core/hle/kernel/k_thread.h | |
parent | hle: kernel: Move single core "phantom mode" out of KThread. (diff) | |
download | yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar.gz yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar.bz2 yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar.lz yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar.xz yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.tar.zst yuzu-0530292b9768637aa6e2875e931c1066af4aa80e.zip |
Diffstat (limited to 'src/core/hle/kernel/k_thread.h')
-rw-r--r-- | src/core/hle/kernel/k_thread.h | 11 |
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 7dec9449e..bef480dd7 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 { |