7 references to DefaultObjectPool
Microsoft.Extensions.ML (1)
PoolLoader.cs (1)
45Interlocked.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)
15var pool = new DefaultObjectPool<object>(new DefaultPooledObjectPolicy<object>()); 31var pool = new DefaultObjectPool<List<int>>(new ListPolicy()); 47var pool = new DefaultObjectPool<List<int>>(new ListPolicy()); 60var pool = new DefaultObjectPool<List<int>>(new ListPolicy()); 75var p = new DefaultObjectPool<Resettable>(new DefaultPooledObjectPolicy<Resettable>());