Routes free calls to the Superblock's owner heap. More...
#include <redirectfree.h>
Public Types | |
enum | { Alignment = (int) Heap::Alignment } |
typedef SuperblockType_ | SuperblockType |
Public Member Functions | |
void * | malloc (size_t sz) |
size_t | getSize (void *ptr) |
SuperblockType * | getSuperblock (void *ptr) |
Static Public Member Functions | |
static void | free (void *ptr) |
Free the given object, obeying the required locking protocol. | |
Private Attributes | |
Heap | _theHeap |
Routes free calls to the Superblock's owner heap.
typedef SuperblockType_ Hoard::RedirectFree< Heap, SuperblockType_ >::SuperblockType |
static void Hoard::RedirectFree< Heap, SuperblockType_ >::free | ( | void * | ptr | ) | [inline, static] |
Free the given object, obeying the required locking protocol.
Reimplemented in Hoard::ThreadPoolHeap< N, NH, Hoard::PerThreadHoardHeap >.
size_t Hoard::RedirectFree< Heap, SuperblockType_ >::getSize | ( | void * | ptr | ) | [inline] |
Reimplemented in Hoard::ThreadPoolHeap< N, NH, Hoard::PerThreadHoardHeap >.
SuperblockType* Hoard::RedirectFree< Heap, SuperblockType_ >::getSuperblock | ( | void * | ptr | ) | [inline] |
void* Hoard::RedirectFree< Heap, SuperblockType_ >::malloc | ( | size_t | sz | ) | [inline] |
Reimplemented in Hoard::ThreadPoolHeap< N, NH, Hoard::PerThreadHoardHeap >.
Heap Hoard::RedirectFree< Heap, SuperblockType_ >::_theHeap [private] |