diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-01 11:06:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:25 +0100 |
commit | 1e55498110800623c63e3ef03bfbff6b6de1c522 (patch) | |
tree | 77437e33162d077c3aa86204b4f47a11d7769a42 /src/core/hle/kernel/k_thread.h | |
parent | hle: kernel: KThread: Fix ThreadType definition. (diff) | |
download | yuzu-1e55498110800623c63e3ef03bfbff6b6de1c522.tar yuzu-1e55498110800623c63e3ef03bfbff6b6de1c522.tar.gz yuzu-1e55498110800623c63e3ef03bfbff6b6de1c522.tar.bz2 yuzu-1e55498110800623c63e3ef03bfbff6b6de1c522.tar.lz yuzu-1e55498110800623c63e3ef03bfbff6b6de1c522.tar.xz yuzu-1e55498110800623c63e3ef03bfbff6b6de1c522.tar.zst yuzu-1e55498110800623c63e3ef03bfbff6b6de1c522.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_thread.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index bef480dd7..83a6d36ae 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -39,15 +39,6 @@ class KernelCore; class Process; class KScheduler; -enum ThreadPriority : u32 { - THREADPRIO_HIGHEST = 0, ///< Highest thread priority - THREADPRIO_MAX_CORE_MIGRATION = 2, ///< Highest priority for a core migration - THREADPRIO_USERLAND_MAX = 24, ///< Highest thread priority for userland apps - THREADPRIO_DEFAULT = 44, ///< Default thread priority for userland apps - THREADPRIO_LOWEST = 63, ///< Lowest thread priority - THREADPRIO_COUNT = 64, ///< Total number of possible thread priorities. -}; - enum class ThreadType : u32 { Main = 0, Kernel = 1, @@ -129,6 +120,9 @@ class KThread final : public KSynchronizationObject, public boost::intrusive::li friend class Process; public: + static constexpr s32 DefaultThreadPriority = 44; + static constexpr s32 IdleThreadPriority = 64; + explicit KThread(KernelCore& kernel); ~KThread() override; |