7 references to DefaultObjectPool
Microsoft.Extensions.ML (1)
PoolLoader.cs (1)
45
Interlocked.Exchange(ref _pool, new
DefaultObjectPool
<PredictionEngine<TData, TPrediction>>(predictionEnginePolicy));
Microsoft.Extensions.ObjectPool (1)
DisposableObjectPool.cs (1)
14
:
base
(policy)
Microsoft.Extensions.ObjectPool.Tests (5)
DefaultObjectPoolTest.cs (5)
15
var pool = new
DefaultObjectPool
<object>(new DefaultPooledObjectPolicy<object>());
31
var pool = new
DefaultObjectPool
<List<int>>(new ListPolicy());
47
var pool = new
DefaultObjectPool
<List<int>>(new ListPolicy());
60
var pool = new
DefaultObjectPool
<List<int>>(new ListPolicy());
75
var p = new
DefaultObjectPool
<Resettable>(new DefaultPooledObjectPolicy<Resettable>());