IObjectPoolThreadSafe

Description

interface Tinman.Core.System.IObjectPoolThreadSafe
<TObject ref>
<TKind in val : IEquatable<TKind>>

Derived from

IObjectPoolBaseThreadSafe

Extended by

ObjectPool sealed

Generic base interface for classes that perform thread-safe memory pooling of objects.

See also

ObjectPoolUtil

Public / Methods

Get­Thread­Safe


[OwnerReturn] [ThreadSafe]
public method GetThreadSafe → (1)

kind opt : TKind = default(TKind)

The kind of the object to fetch.

returns → TObject

The pooled object.

The thread-safe version of IObjectPool.Get.

Put­Thread­Safe


[ThreadSafe]
public method PutThreadSafe → (1)

obj in : TObject own

[not-null]
The pooled object to put back.

The thread-safe version of IObjectPool.Put.