MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / acquire

Method acquire

src/runtime/OffsetMemoryPool.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void OffsetMemoryPool::acquire(MemoryMappings &handles)
49{
50 ARM_COMPUTE_ERROR_ON(_blob == nullptr);
51
52 // Set memory to handlers
53 for (auto &handle : handles)
54 {
55 ARM_COMPUTE_ERROR_ON(handle.first == nullptr);
56 handle.first->set_owned_region(_blob->extract_subregion(handle.second, _blob_info.size - handle.second));
57 }
58}
59
60void OffsetMemoryPool::release(MemoryMappings &handles)
61{

Callers

nothing calls this directly

Calls 2

set_owned_regionMethod · 0.45
extract_subregionMethod · 0.45

Tested by

no test coverage detected