kzwkt / quimeraengine

Automatically exported from code.google.com/p/quimeraengine
0 stars 0 forks source link

QPoolAllocator should receive another buffer for the free block list #646

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 9 Feb 2015 at 6:30