From 3d1489de593574e65ef1e64a7ae64e4e56c2978b Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 3 May 2018 20:47:16 +0100 Subject: COMPMID-605: Transition buffer memory manager Change-Id: Ide7c6124eb19f13f15f517e62d705646a0cd1ecd Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/130184 Reviewed-by: Georgios Pinitas Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/runtime/ISimpleLifetimeManager.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'arm_compute/runtime/ISimpleLifetimeManager.h') diff --git a/arm_compute/runtime/ISimpleLifetimeManager.h b/arm_compute/runtime/ISimpleLifetimeManager.h index 792ab0b558..7942e40f7f 100644 --- a/arm_compute/runtime/ISimpleLifetimeManager.h +++ b/arm_compute/runtime/ISimpleLifetimeManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -30,7 +30,9 @@ #include "arm_compute/runtime/Types.h" #include +#include #include +#include #include namespace arm_compute @@ -77,9 +79,19 @@ protected: bool status; /**< Lifetime status */ }; - IMemoryGroup *_active_group; /**< Active group */ - std::vector _active_elements; /**< A map that contains the active elements */ - std::map> _finalized_groups; /**< A map that contains the finalized groups */ + /** Blob struct */ + struct Blob + { + void *id; + size_t max_size; + std::set bound_elements; + }; + + IMemoryGroup *_active_group; /**< Active group */ + std::map _active_elements; /**< A map that contains the active elements */ + std::list _free_blobs; /**< Free blobs */ + std::list _occupied_blobs; /**< Occupied blobs */ + std::map> _finalized_groups; /**< A map that contains the finalized groups */ }; } // namespace arm_compute #endif /* __ARM_COMPUTE_ISIMPLELIFETIMEMANAGER_H__ */ -- cgit v1.2.1