ILNumerics Ultimate VS

MemoryPoolHandleT Class

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
The memory pool base class is a quantizing memory pool for fast (re-)allocating chunks of memory.

[ILNumerics Core Module]

Inheritance Hierarchy

SystemObject
  ILNumerics.Core.MemoryLayerMemoryPoolHandleT
    ILNumerics.Core.MemoryLayerCLSharedMemoryPool
    ILNumerics.Core.MemoryLayerDeviceMemoryPool
    ILNumerics.Core.MemoryLayerManagedHostPoolT
    ILNumerics.Core.MemoryLayerNativeHostPool

Namespace:  ILNumerics.Core.MemoryLayer
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public abstract class MemoryPool<HandleT> : IMemoryPool
where HandleT : MemoryHandle

Type Parameters

HandleT

The MemoryPoolHandleT type exposes the following members.

Properties

  NameDescription
Public propertyCount
The number of objects currently stored in this pool.

[ILNumerics Core Module]

Public propertyDevice
The device this pool is associated with.

[ILNumerics Core Module]

Public propertyMaxSize
A hard limit of a number of bytes the memory pool is able to hold.

[ILNumerics Core Module]

Public propertyMemoryType
The memory type managed by this pool [readonly].

[ILNumerics Core Module]

Public propertyOOMCount
Number of OOMs catched (and potentially forwarded) during allocation requests.

[ILNumerics Core Module]

Public propertyShrinkCount
Number of shrinking operations performed by the pool so far.

[ILNumerics Core Module]

Public propertySize
The sum in bytes of all objects currently hold in the pool.

[ILNumerics Core Module]

Public propertyThreadID
The managed thread ID of the thread this pool was created by/for. All (non-readonly) requests to the memory pools must be made from this thread only!

[ILNumerics Core Module]

Top
Methods

  NameDescription
Public methodStatic memberFindBin
map lengths to bins

[ILNumerics Core Module]

Public methodFree
Returns a chunk of memory back to the pool.

[ILNumerics Core Module]

Public methodStatic memberGetBinLengths
Return an enumeration of all lengths for memory chunks in bytes that the memory pool is able to manage (allocate).

[ILNumerics Core Module]

Public methodNew(UInt64, Boolean)
Request a memory chunk of minimal length length.

[ILNumerics Core Module]

Public methodNew(UIntPtr, Boolean)
Request a memory chunk of minimal length length.

[ILNumerics Core Module]

Public methodShrink
Shrinks the pool down to shrinkedSize by releasing old objects.

[ILNumerics Core Module]

Public methodToString
Produces statistical information about this memory pool instance for informal messages.

[ILNumerics Core Module]

(Overrides ObjectToString.)
Top
Fields

  NameDescription
Protected fieldm_device
The device this memory pool belongs to.
Protected fieldm_memoryType
Internal use
Protected fieldm_threadID
Internal use
Protected fieldStatic members_processPools
Internal use
Top
Remarks

[ILNumerics Core Module]

See Also

Reference