aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/handle_table.h
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2020-07-16 23:02:04 +1000
committerGitHub <noreply@github.com>2020-07-16 23:02:04 +1000
commit0648e023eac31b92c1df1d33a575b9c5266cfdaa (patch)
tree553beed5770ec50795667bc5ab82c16ced10cc3f /src/core/hle/kernel/handle_table.h
parent815f30dc107794b0ed6a5da7e3c166be5fa12766 (diff)
parent73bb87c06b19aa728b3542551bb0d74daac63f86 (diff)
Merge pull request #4346 from lioncash/thread
kernel/handle_table: Remove usages of the global system instance
Diffstat (limited to 'src/core/hle/kernel/handle_table.h')
-rw-r--r--src/core/hle/kernel/handle_table.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h
index 8029660ed..c9dab8cdd 100644
--- a/src/core/hle/kernel/handle_table.h
+++ b/src/core/hle/kernel/handle_table.h
@@ -14,6 +14,8 @@
namespace Kernel {
+class KernelCore;
+
enum KernelHandle : Handle {
InvalidHandle = 0,
CurrentThread = 0xFFFF8000,
@@ -48,7 +50,7 @@ public:
/// This is the maximum limit of handles allowed per process in Horizon
static constexpr std::size_t MAX_COUNT = 1024;
- HandleTable();
+ explicit HandleTable(KernelCore& kernel);
~HandleTable();
/**
@@ -134,6 +136,9 @@ private:
/// Head of the free slots linked list.
u16 next_free_slot = 0;
+
+ /// Underlying kernel instance that this handle table operates under.
+ KernelCore& kernel;
};
} // namespace Kernel