aboutsummaryrefslogtreecommitdiff
path: root/arm_compute
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-18 12:04:56 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-09-27 17:20:08 +0000
commit40958adf8bad8fd9fefe591ee55a381f7bbb6fea (patch)
treec96403fb2f47908278c4d33c63fbfc856b7aa0e0 /arm_compute
parentbc166d5a8e350bed6b50d7315f8e8502fc9a17b1 (diff)
downloadComputeLibrary-40958adf8bad8fd9fefe591ee55a381f7bbb6fea.tar.gz
COMPMID-2663: Interface to unbound mappings.
Adds an interface to ILifetimeManager to unbound a list of mappings. Change-Id: I927fa1e0f83e6be778fd36794439f51d36dde408 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/1988 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute')
-rw-r--r--arm_compute/runtime/ILifetimeManager.h9
-rw-r--r--arm_compute/runtime/ISimpleLifetimeManager.h3
2 files changed, 10 insertions, 2 deletions
diff --git a/arm_compute/runtime/ILifetimeManager.h b/arm_compute/runtime/ILifetimeManager.h
index 3684ddf8fb..261882bbea 100644
--- a/arm_compute/runtime/ILifetimeManager.h
+++ b/arm_compute/runtime/ILifetimeManager.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -48,6 +48,13 @@ public:
* @param[in] group The group id of the group
*/
virtual void register_group(IMemoryGroup *group) = 0;
+ /** Unbound and release elements associated with a group
+ *
+ * @param[in] group Group to unbound its elements
+ *
+ * @return True if group was registered and released else false.
+ */
+ virtual bool release_group(IMemoryGroup *group) = 0;
/** Registers and starts lifetime of an object
*
* @param[in] obj Object to register
diff --git a/arm_compute/runtime/ISimpleLifetimeManager.h b/arm_compute/runtime/ISimpleLifetimeManager.h
index 4384283b94..7ba11cc1b3 100644
--- a/arm_compute/runtime/ISimpleLifetimeManager.h
+++ b/arm_compute/runtime/ISimpleLifetimeManager.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -57,6 +57,7 @@ public:
// Inherited methods overridden:
void register_group(IMemoryGroup *group) override;
+ bool release_group(IMemoryGroup *group) override;
void start_lifetime(void *obj) override;
void end_lifetime(void *obj, IMemory &obj_memory, size_t size, size_t alignment) override;
bool are_all_finalized() const override;