Base class for memory pools.
More...
#include <mem_pool_base.h>
|
| static void * | alloc_sys (size_t size) |
| | Allocates memory from the run-time system. More...
|
| |
| static void | dealloc_sys (void *ptr) |
| | Frees memory and returns it to the run-time system. More...
|
| |
Base class for memory pools.
◆ alloc_sys()
| void * nvwa::mem_pool_base::alloc_sys |
( |
size_t |
size | ) |
|
|
static |
Allocates memory from the run-time system.
- Parameters
-
| size | size of the memory to allocate in bytes |
- Returns
- pointer to allocated memory block if successful; or null if memory allocation fails
◆ dealloc_sys()
| void nvwa::mem_pool_base::dealloc_sys |
( |
void * |
ptr | ) |
|
|
static |
Frees memory and returns it to the run-time system.
- Parameters
-
| ptr | pointer to the memory block previously allocated |
◆ recycle()
| void nvwa::mem_pool_base::recycle |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: