mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
add ObjectsPool::countTotal
This commit is contained in:
parent
13b7377b3f
commit
c0a288705e
1 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ namespace util {
|
||||||
freeObjects.push(ptr);
|
freeObjects.push(ptr);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t countTotal() const {
|
||||||
|
return objects.size();
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
std::vector<std::unique_ptr<void, AlignedDeleter>> objects;
|
std::vector<std::unique_ptr<void, AlignedDeleter>> objects;
|
||||||
std::queue<void*> freeObjects;
|
std::queue<void*> freeObjects;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue