Preallocate pool list

This commit is contained in:
Benoit Blanchon
2023-07-21 10:38:35 +02:00
parent f427706e06
commit 1a14499612
19 changed files with 183 additions and 143 deletions

View File

@ -57,8 +57,7 @@ TEST_CASE("ResourceManager::allocSlot()") {
}
SECTION("Returns null if pool allocation fails") {
TimebombAllocator allocator(1);
ResourceManager resources(&allocator);
ResourceManager resources(FailingAllocator::instance());
resources.allocSlot();