Back to Aurora Vision Library Lite website

You are here: Start » System » Configuration » ChargeImageMemoryPools

ChargeImageMemoryPools


Header: AVL.h
Namespace: avl

Preallocates memory buffers for images.

Applications: This may improve performance when many images are created and destroyed in an application.

Syntax

void avl::ChargeImageMemoryPools
(
	const atl::Array<int>& inRequestedPoolSizes,
	bool inTouch
)

Parameters

Name Type Default Description
Input value inRequestedPoolSizes const Array<int>& Copy a value from InspectImageMemoryPools.outPoolSizes
Input value inTouch bool Forces getting the new memory pools to the cache memory

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

Errors

List of possible exceptions:

Error type Description
DomainError Incorrect size of 'inRequestedPoolSizes' array.