1 #ifndef OMEGA_H_POOL_HPP
2 #define OMEGA_H_POOL_HPP
10 using BlockList = std::vector<VoidPtr>;
11 using MallocFunc = std::function<VoidPtr(std::size_t)>;
12 using FreeFunc = std::function<void(VoidPtr, std::size_t)>;
15 Pool(MallocFunc, FreeFunc);
19 Pool& operator=(
Pool const&) =
delete;
21 BlockList used_blocks[64];
22 BlockList free_blocks[64];
23 MallocFunc underlying_malloc;
24 FreeFunc underlying_free;
27 void* allocate(
Pool&, std::size_t);
28 void deallocate(
Pool&,
void*, std::size_t);
Definition: amr_mpi_test.cpp:6
Definition: Omega_h_pool.hpp:14