Memory pool usage tracking + size optimization

This commit is contained in:
Pavel Kirienko
2015-06-22 21:02:41 +03:00
parent ba2f7de9d8
commit e99120c257
4 changed files with 59 additions and 30 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ void LimitedPoolAllocator::deallocate(const void* ptr)
}
}
std::size_t LimitedPoolAllocator::getNumBlocks() const
uint16_t LimitedPoolAllocator::getNumBlocks() const
{
return min(max_blocks_, allocator_.getNumBlocks());
}