#include <MemoryManager.h>
Allocates memory on 16-byte boundaries.
- See also
- MemoryManager, CRTMemoryManager, AreaMemoryManager
G3D::AlignedMemoryManager::AlignedMemoryManager |
( |
| ) |
|
|
protected |
void * G3D::AlignedMemoryManager::alloc |
( |
size_t |
s | ) |
|
|
virtual |
Return a pointer to s bytes of memory that are unused by the rest of the program. The contents of the memory are undefined
Reimplemented from G3D::MemoryManager.
static void * alignedMalloc(size_t bytes, size_t alignment)
Definition: System.cpp:1482
shared_ptr< class AlignedMemoryManager > Ref
Definition: MemoryManager.h:62
AlignedMemoryManager()
Definition: MemoryManager.cpp:43
void G3D::AlignedMemoryManager::free |
( |
void * |
ptr | ) |
|
|
virtual |
Invoke to declare that this memory will no longer be used by the program. The memory manager is not required to actually reuse or release this memory.
Reimplemented from G3D::MemoryManager.
static void alignedFree(void *ptr)
Definition: System.cpp:1546
bool G3D::AlignedMemoryManager::isThreadsafe |
( |
| ) |
const |
|
virtual |
Returns true if this memory manager is threadsafe (i.e., alloc and free can be called asychronously)
Reimplemented from G3D::MemoryManager.
The documentation for this class was generated from the following files: