ILNumerics Ultimate VS

MemoryPoolHandleTFree Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Returns a chunk of memory back to the pool.

[ILNumerics Core Module]

Namespace:  ILNumerics.Core.MemoryLayer
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.4.0.0 (5.4.7431.3055)
Syntax

public virtual void Free(
	HandleT handle
)

Parameters

handle
Type: HandleT
HandleT refering to the memory chunk.
Remarks

The pool will try to hold on to the memory pointed to by handle. If the handles memory length is too large and will not 'fit' into the pool (see: MaxSize) it will be released back to the Device memory, disposing the handle.

If the handles size is smaller than MaxSize but other objects currently stored in the pool prevent to store handle without exceeding MaxSize at least some of those handles will be released until there is enough free space in the pool to fit the new handle into the pool. This process (shrinking) may also involves the modification of the MaxSize property of the pool.

[ILNumerics Core Module]

See Also

Reference