20 enum LockOp { LOCK_FOR_READ = 0, LOCK_FOR_WRITE };
33 virtual void*
lock(
void* handle,
LockOp = LOCK_FOR_WRITE) noexcept = 0;
40 virtual void unlock(
void* handle) noexcept = 0;
46 virtual void*
alloc(
size_t size) noexcept = 0;
51 virtual bool free(
void* handle) noexcept = 0;
LockOp
Allocator handle mapping type.
Definition: ie_allocator.hpp:20
Inference Engine API.
Definition: ie_argmax_layer.hpp:11
virtual bool free(void *handle) noexcept=0
Releases 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.
virtual void unlock(void *handle) noexcept=0
Unmaps memory by handle with multiple sequential mappings of the same handle. The multiple sequential...
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:25
virtual void * lock(void *handle, LockOp=LOCK_FOR_WRITE) noexcept=0
Maps handle to heap memory accessible by any memory manipulation routines.