diff options
author | Liam <byteslice@airmail.cc> | 2023-04-29 21:10:09 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-04-30 04:11:32 +0200 |
commit | b143ce8134cc851d065410ba3a825cc6a5bf34e0 (patch) | |
tree | 9180ba87fe3472b60f64bb5256177d511a9b6936 /src/core/hle/kernel/k_object_name.h | |
parent | common: add intrusive list type (diff) | |
download | yuzu-b143ce8134cc851d065410ba3a825cc6a5bf34e0.tar yuzu-b143ce8134cc851d065410ba3a825cc6a5bf34e0.tar.gz yuzu-b143ce8134cc851d065410ba3a825cc6a5bf34e0.tar.bz2 yuzu-b143ce8134cc851d065410ba3a825cc6a5bf34e0.tar.lz yuzu-b143ce8134cc851d065410ba3a825cc6a5bf34e0.tar.xz yuzu-b143ce8134cc851d065410ba3a825cc6a5bf34e0.tar.zst yuzu-b143ce8134cc851d065410ba3a825cc6a5bf34e0.zip |
Diffstat (limited to 'src/core/hle/kernel/k_object_name.h')
-rw-r--r-- | src/core/hle/kernel/k_object_name.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_object_name.h b/src/core/hle/kernel/k_object_name.h index 2d97fc777..a8876fe37 100644 --- a/src/core/hle/kernel/k_object_name.h +++ b/src/core/hle/kernel/k_object_name.h @@ -5,7 +5,8 @@ #include <array> #include <memory> -#include <boost/intrusive/list.hpp> + +#include "common/intrusive_list.h" #include "core/hle/kernel/k_light_lock.h" #include "core/hle/kernel/slab_helpers.h" @@ -15,13 +16,14 @@ namespace Kernel { class KObjectNameGlobalData; -class KObjectName : public KSlabAllocated<KObjectName>, public boost::intrusive::list_base_hook<> { +class KObjectName : public KSlabAllocated<KObjectName>, + public Common::IntrusiveListBaseNode<KObjectName> { public: explicit KObjectName(KernelCore&) {} virtual ~KObjectName() = default; static constexpr size_t NameLengthMax = 12; - using List = boost::intrusive::list<KObjectName>; + using List = Common::IntrusiveListBaseTraits<KObjectName>::ListType; static Result NewFromName(KernelCore& kernel, KAutoObject* obj, const char* name); static Result Delete(KernelCore& kernel, KAutoObject* obj, const char* name); |