|
@@ -163,19 +163,14 @@ void BaseMemoryPool::destroy()
|
|
|
m_allocationCount.setNonAtomically(0);
|
|
m_allocationCount.setNonAtomically(0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-HeapMemoryPool::HeapMemoryPool()
|
|
|
|
|
- : BaseMemoryPool(Type::kHeap)
|
|
|
|
|
|
|
+void HeapMemoryPool::init(AllocAlignedCallback allocCb, void* allocCbUserData, const Char* name)
|
|
|
{
|
|
{
|
|
|
|
|
+ BaseMemoryPool::init(allocCb, allocCbUserData, name);
|
|
|
#if ANKI_MEM_EXTRA_CHECKS
|
|
#if ANKI_MEM_EXTRA_CHECKS
|
|
|
m_signature = computePoolSignature(this);
|
|
m_signature = computePoolSignature(this);
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void HeapMemoryPool::init(AllocAlignedCallback allocCb, void* allocCbUserData, const Char* name)
|
|
|
|
|
-{
|
|
|
|
|
- BaseMemoryPool::init(allocCb, allocCbUserData, name);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
void HeapMemoryPool::destroy()
|
|
void HeapMemoryPool::destroy()
|
|
|
{
|
|
{
|
|
|
const U32 count = m_allocationCount.load();
|
|
const U32 count = m_allocationCount.load();
|