Currently, QPoolAllocator only receives an external buffer for the pool, and
stores the free block list in another part using the heap. Since this is not an
optimized version of a pool allocator, that list cannot be embedded into the
pool.
The other buffer should be aligned depending on the architecture.
A method to calculate the necessary space for this extra buffer would be
necessary.
QPoolAllocator(size, block size, block buffer, support buffer)
support buffer: The buffer used for storing the internal list of free blocks.
static
u-int QPoolAllocator::CalculateSupportBufferSize(number of blocks);
Original issue reported on code.google.com by Lince3D@gmail.com on 16 Nov 2014 at 12:44
Original issue reported on code.google.com by
Lince3D@gmail.com
on 16 Nov 2014 at 12:44