mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +00:00
util/lmem: minor fixes
This commit is contained in:
parent
c17b6d0d44
commit
799f94958c
@ -78,7 +78,11 @@ namespace ams::lmem::impl {
|
||||
struct HeapHead {
|
||||
u32 magic;
|
||||
util::IntrusiveListNode list_node;
|
||||
typename util::IntrusiveListMemberTraits<&HeapHead::list_node>::ListType child_list;
|
||||
|
||||
using ChildListTraits = util::IntrusiveListMemberTraitsDeferredAssert<&HeapHead::list_node>;
|
||||
using ChildList = ChildListTraits::ListType;
|
||||
ChildList child_list;
|
||||
|
||||
void *heap_start;
|
||||
void *heap_end;
|
||||
os::Mutex mutex;
|
||||
@ -86,5 +90,6 @@ namespace ams::lmem::impl {
|
||||
ImplementationHeapHead impl_head;
|
||||
};
|
||||
static_assert(std::is_trivially_destructible<HeapHead>::value);
|
||||
static_assert(HeapHead::ChildListTraits::IsValid());
|
||||
|
||||
}
|
||||
|
@ -38,4 +38,6 @@ namespace ams::util {
|
||||
}
|
||||
};
|
||||
|
||||
constexpr inline Uuid InvalidUuid = {};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user