diff options
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index db01d6c8a..5a2cfdb36 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -173,10 +173,15 @@ public: | |||
| 173 | std::shared_ptr<ResourceLimit> GetResourceLimit() const; | 173 | std::shared_ptr<ResourceLimit> GetResourceLimit() const; |
| 174 | 174 | ||
| 175 | /// Gets the ideal CPU core ID for this process | 175 | /// Gets the ideal CPU core ID for this process |
| 176 | u8 GetIdealCore() const { | 176 | u8 GetIdealCoreId() const { |
| 177 | return ideal_core; | 177 | return ideal_core; |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | /// Checks if the specified thread priority is valid. | ||
| 181 | bool CheckThreadPriority(s32 prio) const { | ||
| 182 | return ((1ULL << prio) & GetPriorityMask()) != 0; | ||
| 183 | } | ||
| 184 | |||
| 180 | /// Gets the bitmask of allowed cores that this process' threads can run on. | 185 | /// Gets the bitmask of allowed cores that this process' threads can run on. |
| 181 | u64 GetCoreMask() const { | 186 | u64 GetCoreMask() const { |
| 182 | return capabilities.GetCoreMask(); | 187 | return capabilities.GetCoreMask(); |