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_thread.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 '')
-rw-r--r-- | src/core/hle/kernel/k_thread.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index 9c1a41128..f9814ac8f 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -12,7 +12,7 @@ #include <utility> #include <vector> -#include <boost/intrusive/list.hpp> +#include "common/intrusive_list.h" #include "common/intrusive_red_black_tree.h" #include "common/spin_lock.h" @@ -119,7 +119,7 @@ s32 GetCurrentCoreId(KernelCore& kernel); Core::Memory::Memory& GetCurrentMemory(KernelCore& kernel); class KThread final : public KAutoObjectWithSlabHeapAndContainer<KThread, KWorkerTask>, - public boost::intrusive::list_base_hook<>, + public Common::IntrusiveListBaseNode<KThread>, public KTimerTask { KERNEL_AUTOOBJECT_TRAITS(KThread, KSynchronizationObject); @@ -138,7 +138,7 @@ public: public: using ThreadContext32 = Core::ARM_Interface::ThreadContext32; using ThreadContext64 = Core::ARM_Interface::ThreadContext64; - using WaiterList = boost::intrusive::list<KThread>; + using WaiterList = Common::IntrusiveListBaseTraits<KThread>::ListType; /** * Gets the thread's current priority @@ -750,8 +750,9 @@ private: ConditionVariableThreadTreeTraits::TreeType<LockWithPriorityInheritanceComparator>; public: - class LockWithPriorityInheritanceInfo : public KSlabAllocated<LockWithPriorityInheritanceInfo>, - public boost::intrusive::list_base_hook<> { + class LockWithPriorityInheritanceInfo + : public KSlabAllocated<LockWithPriorityInheritanceInfo>, + public Common::IntrusiveListBaseNode<LockWithPriorityInheritanceInfo> { public: explicit LockWithPriorityInheritanceInfo(KernelCore&) {} @@ -839,7 +840,7 @@ public: private: using LockWithPriorityInheritanceInfoList = - boost::intrusive::list<LockWithPriorityInheritanceInfo>; + Common::IntrusiveListBaseTraits<LockWithPriorityInheritanceInfo>::ListType; ConditionVariableThreadTree* m_condvar_tree{}; u64 m_condvar_key{}; |