From df3103622b7de05f4e35b22a2c94b4a46eab4efc Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 14 Nov 2018 13:16:56 +0000 Subject: COMPMID-1088: Use IMemoryRegion in interfaces where possible -Simplifies import memory interface -Changes the used of void** handles with appropriate interfaces. Change-Id: I5918c855c11f46352058864623336b352162a4b7 --- arm_compute/runtime/OffsetMemoryPool.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'arm_compute/runtime/OffsetMemoryPool.h') diff --git a/arm_compute/runtime/OffsetMemoryPool.h b/arm_compute/runtime/OffsetMemoryPool.h index 9685fd1319..480d424b5b 100644 --- a/arm_compute/runtime/OffsetMemoryPool.h +++ b/arm_compute/runtime/OffsetMemoryPool.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -26,6 +26,7 @@ #include "arm_compute/runtime/IMemoryPool.h" +#include "arm_compute/runtime/IMemoryRegion.h" #include "arm_compute/runtime/Types.h" #include @@ -47,7 +48,7 @@ public: */ OffsetMemoryPool(IAllocator *allocator, size_t blob_size); /** Default Destructor */ - ~OffsetMemoryPool(); + ~OffsetMemoryPool() = default; /** Prevent instances of this class to be copy constructed */ OffsetMemoryPool(const OffsetMemoryPool &) = delete; /** Prevent instances of this class to be copy assigned */ @@ -64,9 +65,9 @@ public: std::unique_ptr duplicate() override; private: - IAllocator *_allocator; /**< Allocator to use for internal allocation */ - void *_blob; /**< Memory blob */ - size_t _blob_size; /**< Sizes of the allocated memory blob */ + IAllocator *_allocator; /**< Allocator to use for internal allocation */ + std::unique_ptr _blob; /**< Memory blob */ + size_t _blob_size; /**< Sizes of the allocated memory blob */ }; } // namespace arm_compute #endif /* __ARM_COMPUTE_OFFSETMEMORYPOOL_H__ */ -- cgit v1.2.1