3 instantiations of PinnedBlockMemoryPool
Interop.FunctionalTests (3)
Http3\Http3RequestTests.cs (1)
1164var memoryPool = new DiagnosticMemoryPool(new PinnedBlockMemoryPool(), allowLateReturn: true);
src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
49var pool = new PinnedBlockMemoryPool(_meterFactory, _logger);
src\Shared\Buffers.MemoryPool\MemoryPoolFactory.cs (1)
24return new PinnedBlockMemoryPool(meterFactory);
9 references to PinnedBlockMemoryPool
Interop.FunctionalTests (9)
src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (5)
18private readonly ConcurrentDictionary<PinnedBlockMemoryPool, bool> _pools = new(); 27_timer = new PeriodicTimer(PinnedBlockMemoryPool.DefaultEvictionDelay); 34foreach (var pool in _pools.Keys) 49var pool = new PinnedBlockMemoryPool(_meterFactory, _logger); 55((ConcurrentDictionary<PinnedBlockMemoryPool, bool>)state!).TryRemove(self, out _);
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (2)
14internal MemoryPoolBlock(PinnedBlockMemoryPool pool, int length) 26public PinnedBlockMemoryPool Pool { get; }
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
63private Action<object?, PinnedBlockMemoryPool>? _onPoolDisposed; 80public void OnPoolDisposed(Action<object?, PinnedBlockMemoryPool> onPoolDisposed, object? state = null)