diff options
| author | 2021-04-20 21:28:11 -0700 | |
|---|---|---|
| committer | 2021-05-05 16:40:52 -0700 | |
| commit | b57c5a9b54b23a348d7e80e51943f27a54fb8c2f (patch) | |
| tree | e3f3c81a2fddb94c43b6a1dd641c61a7ca9c8225 /src/core/hle/kernel/process.h | |
| parent | hle: kernel: svc: Migrate WaitSynchronization. (diff) | |
| download | yuzu-b57c5a9b54b23a348d7e80e51943f27a54fb8c2f.tar.gz yuzu-b57c5a9b54b23a348d7e80e51943f27a54fb8c2f.tar.xz yuzu-b57c5a9b54b23a348d7e80e51943f27a54fb8c2f.zip | |
hle: kernel: Migrate KResourceLimit to KAutoObject.
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index df3c7997d..35fe16433 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -171,7 +171,7 @@ public: | |||
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | /// Gets the resource limit descriptor for this process | 173 | /// Gets the resource limit descriptor for this process |
| 174 | std::shared_ptr<KResourceLimit> GetResourceLimit() const; | 174 | KResourceLimit* GetResourceLimit() const; |
| 175 | 175 | ||
| 176 | /// Gets the ideal CPU core ID for this process | 176 | /// Gets the ideal CPU core ID for this process |
| 177 | u8 GetIdealCoreId() const { | 177 | u8 GetIdealCoreId() const { |
| @@ -348,9 +348,7 @@ public: | |||
| 348 | 348 | ||
| 349 | static void PostDestroy([[maybe_unused]] uintptr_t arg) {} | 349 | static void PostDestroy([[maybe_unused]] uintptr_t arg) {} |
| 350 | 350 | ||
| 351 | virtual void Finalize() override { | 351 | virtual void Finalize(); |
| 352 | UNIMPLEMENTED(); | ||
| 353 | } | ||
| 354 | 352 | ||
| 355 | virtual u64 GetId() const override final { | 353 | virtual u64 GetId() const override final { |
| 356 | return GetProcessID(); | 354 | return GetProcessID(); |
| @@ -415,7 +413,7 @@ private: | |||
| 415 | u32 system_resource_size = 0; | 413 | u32 system_resource_size = 0; |
| 416 | 414 | ||
| 417 | /// Resource limit descriptor for this process | 415 | /// Resource limit descriptor for this process |
| 418 | std::shared_ptr<KResourceLimit> resource_limit; | 416 | KResourceLimit* resource_limit{}; |
| 419 | 417 | ||
| 420 | /// The ideal CPU core for this process, threads are scheduled on this core by default. | 418 | /// The ideal CPU core for this process, threads are scheduled on this core by default. |
| 421 | u8 ideal_core = 0; | 419 | u8 ideal_core = 0; |