24 #ifndef ARM_COMPUTE_IPOOLMANAGER_H 25 #define ARM_COMPUTE_IPOOLMANAGER_H 55 virtual void register_pool(std::unique_ptr<IMemoryPool> pool) = 0;
virtual IMemoryPool * lock_pool()=0
Locks a pool for execution.
Memory pool manager interface.
Copyright (c) 2017-2021 Arm Limited.
virtual void unlock_pool(IMemoryPool *pool)=0
Releases memory pool.
virtual std::unique_ptr< IMemoryPool > release_pool()=0
Releases a free pool from the managed pools.
virtual void register_pool(std::unique_ptr< IMemoryPool > pool)=0
Register pool to be managed by the pool.
virtual void clear_pools()=0
Clears all pools managed by the pool manager.
virtual ~IPoolManager()=default
Default virtual destructor.
virtual size_t num_pools() const =0
Returns the total number of pools managed by the pool manager.