TPIE

2362a60
tpie::pipelining::parallel_bits::aligned_array< T, Align > Class Template Reference

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
 

Detailed Description

template<typename T, size_t Align>
class tpie::pipelining::parallel_bits::aligned_array< T, Align >

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.


The documentation for this class was generated from the following file: