|
My Project
|
#include <mem_pool.h>
Public Member Functions | |
| bool | Ready () |
| void | AddBlock (MemBlock *blk) |
| void | DelBlock (MemBlock *b) |
| void | InsertBefore (MemBlock *b, MemBlock *p) |
| void | InsertAfter (MemBlock *b, MemBlock *n) |
| void | CoalesceRight (MemBlock *b) |
| bool | Allocate (MemChunk &chunk, u32 size, int align) |
| void | Deallocate (const MemChunk &chunk) |
| void | Destroy () |
| u32 | GetFreeSpace () |
Data Fields | |
| MemBlock * | first |
| MemBlock * | last |
Definition at line 28 of file mem_pool.h.
|
inline |
Definition at line 34 of file mem_pool.h.
Definition at line 33 of file mem_pool.cpp.
| void CoalesceRight | ( | MemBlock * | b | ) |
Definition at line 19 of file mem_pool.cpp.
| void Deallocate | ( | const MemChunk & | chunk | ) |
Definition at line 76 of file mem_pool.cpp.
|
inline |
Definition at line 42 of file mem_pool.h.
|
inline |
Definition at line 75 of file mem_pool.h.
| u32 GetFreeSpace | ( | ) |
Definition at line 127 of file mem_pool.cpp.
Definition at line 60 of file mem_pool.h.
Definition at line 51 of file mem_pool.h.
|
inline |
Definition at line 32 of file mem_pool.h.
| MemBlock* first |
Definition at line 30 of file mem_pool.h.
| MemBlock * last |
Definition at line 30 of file mem_pool.h.