Memory pool for structures
Posted on 2003-12-09
I've got an embedded system which wishes to avoid fragmentation. The structure in question is going to be in constant use with several thousand of these messages being created and destroyed:
With all these different sized structures (ex1, ex2, ...) the memory will get framented very easily and very quickly. I would think the best way to approach this would be with a memory pool. Any suggestions on how to begin? Any examples?