Standard list-based allocator. More...
Collaboration diagram for cxx::List_alloc:Public Member Functions | |
| List_alloc () | |
| Initializes an empty list allocator. | |
| void | free (void *block, unsigned long size, bool initial_free=false) |
| Return a free memory block to the allocator. | |
| void * | alloc (unsigned long size, unsigned align) |
| Alloc a memory block. | |
| unsigned long | avail () |
| Get the amount of available memory. | |
Standard list-based allocator.
Definition at line 30 of file list_alloc.
|
inline |
Initializes an empty list allocator.
Definition at line 55 of file list_alloc.
|
inline |
Return a free memory block to the allocator.
| block | pointer to memory block |
| size | size of memory block |
| initial_free | Set to true for putting fresh memory to the allocator. This will enforce alignment on that memory. |
Definition at line 200 of file list_alloc.
|
inline |
Alloc a memory block.
| size | Size of the memory block |
| align | Alignment constraint |
Definition at line 238 of file list_alloc.
|
inline |
Get the amount of available memory.
Definition at line 309 of file list_alloc.