|
mxnet
|
A memory pool that allocate memory of fixed size and alignment. More...
#include <memory.h>

Public Member Functions | |
| MemoryPool () | |
| constructor More... | |
| void * | allocate () |
| allocate a new memory of size More... | |
| void | deallocate (void *p) |
| deallocate a piece of memory More... | |
A memory pool that allocate memory of fixed size and alignment.
| size | The size of each piece. |
| align | The alignment requirement of the memory. |
|
inline |
constructor
|
inline |
allocate a new memory of size
|
inline |
deallocate a piece of memory
| p | The pointer to the memory to be de-allocated. |
1.8.13