util/lmem: minor fixes

This commit is contained in:
Michael Scire 2020-02-24 20:28:39 -08:00
parent c17b6d0d44
commit 799f94958c
2 changed files with 8 additions and 1 deletions

View file

@ -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());
}

View file

@ -38,4 +38,6 @@ namespace ams::util {
}
};
constexpr inline Uuid InvalidUuid = {};
}