Hoard::RedirectFree< Heap, SuperblockType_ > Class Template Reference

Routes free calls to the Superblock's owner heap. More...

#include <redirectfree.h>

List of all members.

Public Types

enum  { Alignment = (int) Heap::Alignment }
typedef SuperblockType_ SuperblockType

Public Member Functions

void * malloc (size_t sz)
size_t getSize (void *ptr)
SuperblockTypegetSuperblock (void *ptr)

Static Public Member Functions

static void free (void *ptr)
 Free the given object, obeying the required locking protocol.

Private Attributes

Heap _theHeap

Detailed Description

template<class Heap, typename SuperblockType_>
class Hoard::RedirectFree< Heap, SuperblockType_ >

Routes free calls to the Superblock's owner heap.

Note:
We also lock the heap on calls to malloc.

Member Typedef Documentation

template<class Heap, typename SuperblockType_>
typedef SuperblockType_ Hoard::RedirectFree< Heap, SuperblockType_ >::SuperblockType

Member Enumeration Documentation

template<class Heap, typename SuperblockType_>
anonymous enum
Enumerator:
Alignment 

Member Function Documentation

template<class Heap, typename 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 >.

template<class Heap, typename SuperblockType_>
size_t Hoard::RedirectFree< Heap, SuperblockType_ >::getSize ( void *  ptr  )  [inline]
template<class Heap, typename SuperblockType_>
SuperblockType* Hoard::RedirectFree< Heap, SuperblockType_ >::getSuperblock ( void *  ptr  )  [inline]
template<class Heap, typename SuperblockType_>
void* Hoard::RedirectFree< Heap, SuperblockType_ >::malloc ( size_t  sz  )  [inline]

Member Data Documentation

template<class Heap, typename SuperblockType_>
Heap Hoard::RedirectFree< Heap, SuperblockType_ >::_theHeap [private]

The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:31 2011 for Galois by  doxygen 1.6.3