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>
diff --git a/arm_compute/runtime/ILifetimeManager.h b/arm_compute/runtime/ILifetimeManager.h
index 3684ddf..261882b 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 @@
* @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