#include <SimObject.h>

Public Member Functions | |
| BlockAllocator (size_t blockSize=SIMOBJECT_ALLOCATOR_BLOCK_SIZE) | |
| ~BlockAllocator () | |
| void * | allocate (size_t size) |
The ratinale behind this memory management is, that all SimObjects belonging to one simulation thread should be in a continous block of memory to avoid false sharing of cache lines. This class approximates this requirement.
Definition at line 417 of file SimObject.h.
| SimObject::BlockAllocator::BlockAllocator | ( | size_t | blockSize = SIMOBJECT_ALLOCATOR_BLOCK_SIZE |
) |
Definition at line 130 of file SimObject.cpp.
| SimObject::BlockAllocator::~BlockAllocator | ( | ) |
Definition at line 139 of file SimObject.cpp.
| void * SimObject::BlockAllocator::allocate | ( | size_t | size | ) |
Definition at line 146 of file SimObject.cpp.
Referenced by SimObject::operator new(), and SimObject::operator new[]().
1.5.5