48 virtual void unlock(
void* handle) noexcept = 0;
55 virtual void*
alloc(
size_t size) noexcept = 0;
61 virtual bool free(
void* handle) noexcept = 0;
LockOp
Allocator handle mapping type.
Definition: ie_allocator.hpp:21
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
virtual bool free(void *handle) noexcept=0
Releases the handle and all associated memory resources which invalidates the handle.
InferenceEngine::IAllocator * CreateDefaultAllocator() noexcept
Creates the default implementation of the Inference Engine allocator per plugin.
virtual void * alloc(size_t size) noexcept=0
Allocates memory.
The macro defines a symbol import/export mechanism essential for Microsoft Windows(R) OS...
A flag to lock data for write.
Definition: ie_allocator.hpp:23
~IAllocator() override=default
Disables the ability of deleting the object without release.
virtual void unlock(void *handle) noexcept=0
Unmaps memory by handle with multiple sequential mappings of the same handle.
A header file for the Inference Engine plugins destruction mechanism.
Allocator concept to be used for memory management and is used as part of the Blob.
Definition: ie_allocator.hpp:30
A flag to lock data for read.
Definition: ie_allocator.hpp:22
virtual void * lock(void *handle, LockOp op=LOCK_FOR_WRITE) noexcept=0
Maps handle to heap memory accessible by any memory manipulation routines.