aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/IPoolManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime/IPoolManager.h')
-rw-r--r--arm_compute/runtime/IPoolManager.h10
1 files changed, 10 insertions, 0 deletions
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<IMemoryPool> 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<IMemoryPool> 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