1#ifndef included_AMP_MemoryPool
2#define included_AMP_MemoryPool
13template<
class TYPE,
class INT_TYPE =
int>
35 inline void free( TYPE *ptr );
40 volatile AtomicOperations::int32_atomic
d_next;
50#include "AMP/threadpool/memory_pool.hpp"
MemoryPool(size_t size)
Default constructor.
TYPE * allocate()
Allocate an object.
MemoryPool & operator=(const MemoryPool &)
volatile AtomicOperations::int32_atomic d_next
volatile TYPE * d_objects
void free(TYPE *ptr)
Insert an item.
MemoryPool(const MemoryPool &)