|
UraniumCompute 0.1.0
A GPU accelerated parallel task scheduler
|
This allocator uses platform-specific aligned versions of malloc() and free(). More...
#include <SystemAllocator.h>
Public Member Functions | |
| void * | Allocate (USize size, USize alignment) override |
| Allocate memory. More... | |
| void | Deallocate (void *pointer) override |
| Deallocate memory. More... | |
| const char * | GetName () const override |
| Get debug name of the allocator. More... | |
| virtual void * | Allocate (USize size, USize alignment)=0 |
| Allocate memory. More... | |
| virtual void | Deallocate (void *pointer)=0 |
| Deallocate memory. More... | |
| virtual const char * | GetName () const =0 |
| Get debug name of the allocator. More... | |
Static Public Member Functions | |
| static SystemAllocator * | Get () |
| Get global static instance of the system allocator. | |
This allocator uses platform-specific aligned versions of malloc() and free().
|
inlineoverridevirtual |
Allocate memory.
| size | - Size of the allocation in bytes. |
| alignment | - Alignment of the allocation in bytes. |
Implements UN::IAllocator.
|
inlineoverridevirtual |
Deallocate memory.
| pointer | - A pointer to the block of memory to deallocate. |
Implements UN::IAllocator.
|
inlineoverridevirtual |
Get debug name of the allocator.
Implements UN::IAllocator.