summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/handle_table.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-19 18:57:47 +0100
committerLioncash <mathew1800@gmail.com>2018-12-21 13:05:31 +0100
commit6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e (patch)
treef2b45468a65f650c03e47fe3a494cf1d27c1fab3 /src/core/hle/kernel/handle_table.h
parentcommon: Add basic bit manipulation utility function to Common (diff)
downloadyuzu-6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e.tar
yuzu-6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e.tar.gz
yuzu-6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e.tar.bz2
yuzu-6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e.tar.lz
yuzu-6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e.tar.xz
yuzu-6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e.tar.zst
yuzu-6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e.zip
Diffstat (limited to 'src/core/hle/kernel/handle_table.h')
-rw-r--r--src/core/hle/kernel/handle_table.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h
index 6b7927fd8..89a3bc740 100644
--- a/src/core/hle/kernel/handle_table.h
+++ b/src/core/hle/kernel/handle_table.h
@@ -43,6 +43,9 @@ enum KernelHandle : Handle {
*/
class HandleTable final : NonCopyable {
public:
+ /// This is the maximum limit of handles allowed per process in Horizon
+ static constexpr std::size_t MAX_COUNT = 1024;
+
HandleTable();
~HandleTable();
@@ -91,9 +94,6 @@ public:
void Clear();
private:
- /// This is the maximum limit of handles allowed per process in Horizon
- static constexpr std::size_t MAX_COUNT = 1024;
-
/// Stores the Object referenced by the handle or null if the slot is empty.
std::array<SharedPtr<Object>, MAX_COUNT> objects;