diff options
| author | 2021-05-04 21:35:42 -0700 | |
|---|---|---|
| committer | 2021-05-05 16:40:54 -0700 | |
| commit | b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b (patch) | |
| tree | fd54235441ff4c2a0986e106bf57c501c2c9982b /src/core/hle/kernel/kernel.h | |
| parent | fixup! hle: kernel: Migrate KSharedMemory to KAutoObject. (diff) | |
| download | yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar.gz yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.tar.xz yuzu-b805ee653f3d178ed2b4b2e0a403bb0ab61dad8b.zip | |
hle: kernel: Move slab resource counts to Kernel.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 7c46aa997..51aaccbc7 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -51,6 +51,10 @@ class ServiceThread; | |||
| 51 | class Synchronization; | 51 | class Synchronization; |
| 52 | class TimeManager; | 52 | class TimeManager; |
| 53 | 53 | ||
| 54 | namespace Init { | ||
| 55 | struct KSlabResourceCounts; | ||
| 56 | } | ||
| 57 | |||
| 54 | template <typename T> | 58 | template <typename T> |
| 55 | class KSlabHeap; | 59 | class KSlabHeap; |
| 56 | 60 | ||
| @@ -292,6 +296,12 @@ public: | |||
| 292 | } | 296 | } |
| 293 | } | 297 | } |
| 294 | 298 | ||
| 299 | /// Gets the current slab resource counts. | ||
| 300 | Init::KSlabResourceCounts& SlabResourceCounts(); | ||
| 301 | |||
| 302 | /// Gets the current slab resource counts. | ||
| 303 | const Init::KSlabResourceCounts& SlabResourceCounts() const; | ||
| 304 | |||
| 295 | private: | 305 | private: |
| 296 | friend class KProcess; | 306 | friend class KProcess; |
| 297 | friend class KThread; | 307 | friend class KThread; |