9#include <vecmem/memory/pool_memory_resource.hpp>
10#include <vecmem/memory/synchronized_memory_resource.hpp>
25 std::make_unique<vecmem::pool_memory_resource>(
m_mrTool->mr(),
m_opts);
27 std::make_unique<vecmem::synchronized_memory_resource>(*
m_cachedMR);
30 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
Initialize the tool.
std::unique_ptr< std::pmr::memory_resource > m_cachedMR
The memory resource that this tool uses for caching.
vecmem::pool_memory_resource::options m_opts
Options object for the underlying pool memory resource.
virtual std::pmr::memory_resource & mr() const override
Get the provided std::pmr::memory_resource object.
ToolHandle< IMemoryResourceTool > m_mrTool
Handle to the tool providing the underlying memory resource.
std::unique_ptr< std::pmr::memory_resource > m_syncedMR
The memory resource that this tool uses for synchronization.