4 ms·
But sometimes it's not just memory. It can be files you need to close, or any other resource held.
by halayli 11y ago
But sometimes it's not just memory. It can be files you need to close, or any other resource held.
- chaz72 11y agoThat too can be queued up, with a list of functions to call to free those resources.
- halayli 11y agoHe was referring to a memory pool allocator. But regardless, good luck with the approach.
- rwmj 11y agoPool allocators can easily deal with non-memory resources. The one I wrote in c2lib could.