Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The <strong>Memory</strong>Pool Class<br />
> <strong>Poco</strong>::<strong>Memory</strong>Pool (#include "<strong>Poco</strong>/<strong>Memory</strong>Pool.h") maintains a<br />
collection of memory blocks of a certain size.<br />
> A call to void* <strong>Memory</strong>Pool::get() hands out a pointer to a<br />
continous block of memory.<br />
> If there are no available blocks, a new block is allocated.<br />
> The maximum number of blocks can be limited. If no more<br />
blocks are available, a OutOf<strong>Memory</strong>Exception is thrown.<br />
> A call to void <strong>Memory</strong>Pool::release(void* ptr) releases the<br />
memory block back to the pool.