Table of Contents

Class CpuMemoryPool<T>

Namespace
Orleans.GpuBridge.Runtime
Assembly
Orleans.GpuBridge.Runtime.dll

CPU-based memory pool for fallback operations

public sealed class CpuMemoryPool<T> : IGpuMemoryPool<T> where T : unmanaged

Type Parameters

T
Inheritance
CpuMemoryPool<T>
Implements
Inherited Members

Constructors

CpuMemoryPool()

Initializes a new instance of the CpuMemoryPool<T> class.

public CpuMemoryPool()

Methods

GetStats()

Gets pool statistics

public MemoryPoolStats GetStats()

Returns

MemoryPoolStats

Rent(int)

Rents memory from the pool

public IGpuMemory<T> Rent(int minimumLength)

Parameters

minimumLength int

Returns

IGpuMemory<T>

Return(IGpuMemory<T>)

Returns memory to the pool

public void Return(IGpuMemory<T> memory)

Parameters

memory IGpuMemory<T>