Skip to main content

Practice ยท 2 of 2

Pool Release and Reuse

Extend the pool: release(p) returns a previously-acquired block to the free list (calls AllocTracker::noteFree()), and available() reports how many blocks can still be handed out.

Difficulty: advanced

Back to lesson: Practice: Practice: Pool Mechanics