diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-11-14 13:16:56 +0000 |
---|---|---|
committer | Isabella Gottardi <isabella.gottardi@arm.com> | 2018-11-21 09:52:04 +0000 |
commit | df3103622b7de05f4e35b22a2c94b4a46eab4efc (patch) | |
tree | 17e10253e7a069c69d10bea0882b699b99d74b86 /arm_compute/runtime/ILifetimeManager.h | |
parent | c47ef20d69e8ea0f519fdc679435cd7037fc18fe (diff) | |
download | ComputeLibrary-df3103622b7de05f4e35b22a2c94b4a46eab4efc.tar.gz |
COMPMID-1088: Use IMemoryRegion in interfaces where possible
-Simplifies import memory interface
-Changes the used of void** handles with appropriate interfaces.
Change-Id: I5918c855c11f46352058864623336b352162a4b7
Diffstat (limited to 'arm_compute/runtime/ILifetimeManager.h')
-rw-r--r-- | arm_compute/runtime/ILifetimeManager.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arm_compute/runtime/ILifetimeManager.h b/arm_compute/runtime/ILifetimeManager.h index 36743ac404..f2e9b497c9 100644 --- a/arm_compute/runtime/ILifetimeManager.h +++ b/arm_compute/runtime/ILifetimeManager.h @@ -32,8 +32,10 @@ namespace arm_compute { -class IMemoryGroup; +// Forward declarations class IAllocator; +class IMemory; +class IMemoryGroup; /** Interface for managing the lifetime of objects */ class ILifetimeManager @@ -53,11 +55,11 @@ public: virtual void start_lifetime(void *obj) = 0; /** Ends lifetime of an object * - * @param[in] obj Object - * @param[in] handle Memory handle of the object - * @param[in] size Size of the given object at given time + * @param[in] obj Object + * @param[in] obj_memory Object memory + * @param[in] size Size of the given object at given time */ - virtual void end_lifetime(void *obj, void **handle, size_t size) = 0; + virtual void end_lifetime(void *obj, IMemory &obj_memory, size_t size) = 0; /** Checks if the lifetime of the registered object is complete * * @return True if all object lifetimes are finalized else false. |