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;
A flag to lock data for read.
Definition: ie_allocator.hpp:22
Definition: cldnn_config.hpp:16
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...
~IAllocator() override=default
Disables the ability of deleting the object without release.
LockOp
Allocator handle mapping type.
Definition: ie_allocator.hpp:21
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
virtual void * lock(void *handle, LockOp op=LOCK_FOR_WRITE) noexcept=0
Maps handle to heap memory accessible by any memory manipulation routines.
A flag to lock data for write.
Definition: ie_allocator.hpp:23