OSX::OSXHeap Class Reference
#include <osxheap.h>
Detailed Description
OSX implementation of Memory::Heap. The OSX implementation uses a memory zone.(C) 2010 Radon Labs GmbH
Public Member Functions | |
OSXHeap (const char *name, size_t initialSize=64 *1024) | |
constructor (name must be a static string!) | |
~OSXHeap () | |
destructor | |
const char * | GetName () const |
get heap name | |
void * | Alloc (size_t size, size_t alignment=16) |
allocate a block of memory from the heap | |
void * | Realloc (void *ptr, size_t newSize) |
re-allocate a block of memory | |
void | Free (void *ptr) |
free a block of memory | |
Static Public Member Functions | |
static void | Setup () |
static setup method (called by Core::SysFunc::Setup) |
Member Function Documentation
void OSX::OSXHeap::Setup | ( | ) | [static] |
static setup method (called by Core::SysFunc::Setup)
This method must be called at the beginning of the application before any threads are spawned.