From 9da19e9da660057785fb736aba5c61b1ae773f2f Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 11 Oct 2018 15:33:11 +0100 Subject: COMPMID-1605: API alignment for the MemoryManager with ARMNN Change-Id: Iac6a95ba7f388e65b7f1c8865c3e9bf289b233ea Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/155490 Reviewed-by: Anthony Barbier Tested-by: bsgcomp --- arm_compute/runtime/IPoolManager.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/runtime/IPoolManager.h') diff --git a/arm_compute/runtime/IPoolManager.h b/arm_compute/runtime/IPoolManager.h index 4cc3c07b5f..6f5af3d499 100644 --- a/arm_compute/runtime/IPoolManager.h +++ b/arm_compute/runtime/IPoolManager.h @@ -53,6 +53,16 @@ public: * @param[in] pool Pool to be managed */ virtual void register_pool(std::unique_ptr pool) = 0; + /** Releases a free pool from the managed pools + * + * @return The released pool in case a free pool existed else nullptr + */ + virtual std::unique_ptr release_pool() = 0; + /** Clears all pools managed by the pool manager + * + * @pre All pools must be unoccupied + */ + virtual void clear_pools() = 0; /** Returns the total number of pools managed by the pool manager * * @return Number of managed pools -- cgit v1.2.1