diff options
Diffstat (limited to 'src/runtime/OffsetMemoryPool.cpp')
-rw-r--r-- | src/runtime/OffsetMemoryPool.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/runtime/OffsetMemoryPool.cpp b/src/runtime/OffsetMemoryPool.cpp index 70cbe90bf0..a335f6087a 100644 --- a/src/runtime/OffsetMemoryPool.cpp +++ b/src/runtime/OffsetMemoryPool.cpp @@ -32,8 +32,8 @@ #include "arm_compute/runtime/Types.h" #include "support/ToolchainSupport.h" -using namespace arm_compute; - +namespace arm_compute +{ OffsetMemoryPool::OffsetMemoryPool(IAllocator *allocator, BlobInfo blob_info) : _allocator(allocator), _blob(), _blob_info(blob_info) { @@ -41,6 +41,11 @@ OffsetMemoryPool::OffsetMemoryPool(IAllocator *allocator, BlobInfo blob_info) _blob = _allocator->make_region(blob_info.size, blob_info.alignment); } +const BlobInfo &OffsetMemoryPool::info() const +{ + return _blob_info; +} + void OffsetMemoryPool::acquire(MemoryMappings &handles) { ARM_COMPUTE_ERROR_ON(_blob == nullptr); @@ -71,4 +76,5 @@ std::unique_ptr<IMemoryPool> OffsetMemoryPool::duplicate() { ARM_COMPUTE_ERROR_ON(!_allocator); return support::cpp14::make_unique<OffsetMemoryPool>(_allocator, _blob_info); -}
\ No newline at end of file +} +} // namespace arm_compute
\ No newline at end of file |