SimpleObjectPool

Description

sealed class Tinman.Core.System.SimpleObjectPool
<T ref : IMemoryConsumption>

Derived from

IObjectPoolGet<T>
IDeletable

A simple object pool.

This object pool is not thread-safe and cannot be used for pooling IDisposable objects.

See also

ObjectPoolUtil

Public / Constructors

Simple​Object​Pool


public constructor SimpleObjectPool → (4)

name in : string

[not-empty]
The object pool name.

factory in : IObjectPoolFactory<T>

[not-null]
The pool object factory to use.

limitCount in : int32

[>0]
Maximum number of pooled objects to hold.

registered opt : bool = true

Register this pool with ObjectPoolUtil?

Creates a new instance of SimpleObjectPool.