Skip to content

PooledResource<T> Methods

Utility class to support pooled objects by allowing them to track the pool they came from and return to it when disposed

OnResetState

virtual
View source
public virtual void OnResetState()
Notifies the object that it has been purged, so it can reset itself to the state of a newly allocated object.

SignalPurge

virtual
View source
public virtual void SignalPurge()
If this object is to be used in a fixed size object pool, this call should be overridden with the purge implementation that returns the object to the pool.