Aligned, uninitialized storage. More...
#include <tpie/pipelining/parallel/aligned_array.h>
Public Member Functions | |
T * | get (size_t idx) |
void | realloc (size_t elms) |
size_t | size () const |
Aligned, uninitialized storage.
This class provides access to an array of items aligned to any boundary (mostly useful for powers of two). They are not constructed or destructed; only the memory resource is handled. This is used for the nodes that are instantiated once for each parallel thread of pipeline computation. They should be stored in an array aligned to a cache line, to avoid cache lock contention.
Definition at line 43 of file aligned_array.h.