hle: kernel: Move slab resource counts to Kernel.

This commit is contained in:
bunnei 2021-05-04 21:35:42 -07:00
parent d2c4dbde9e
commit b805ee653f
4 changed files with 52 additions and 33 deletions

View file

@ -51,6 +51,10 @@ class ServiceThread;
class Synchronization;
class TimeManager;
namespace Init {
struct KSlabResourceCounts;
}
template <typename T>
class KSlabHeap;
@ -292,6 +296,12 @@ public:
}
}
/// Gets the current slab resource counts.
Init::KSlabResourceCounts& SlabResourceCounts();
/// Gets the current slab resource counts.
const Init::KSlabResourceCounts& SlabResourceCounts() const;
private:
friend class KProcess;
friend class KThread;