patch #6822 (Add option to place memory pools in separate arrays) - new config option MEMP_SEPARATE_POOLS

This commit is contained in:
goldsimon
2010-01-10 12:44:09 +00:00
parent 13c9d2dade
commit 763760503b
3 changed files with 40 additions and 1 deletions

View File

@@ -124,6 +124,15 @@
#define MEM_SIZE 1600
#endif
/**
* MEMP_SEPARATE_POOLS: if defined to 1, each pool is placed in its own array.
* This can be used to individually change the location of each pool.
* Default is one big array for all pools
*/
#ifndef MEMP_SEPARATE_POOLS
#define MEMP_SEPARATE_POOLS 0
#endif
/**
* MEMP_OVERFLOW_CHECK: memp overflow protection reserves a configurable
* amount of bytes before and after each memp element in every pool and fills