1 instantiation of PooledSortedSet
Test.Utilities (1)
PooledSortedSet.cs (1)
50
() => new
PooledSortedSet
<T>(pool, comparer),
11 references to PooledSortedSet
Test.Utilities (11)
PooledSortedSet.cs (11)
19
private readonly ObjectPool<
PooledSortedSet
<T>>? _pool;
21
public PooledSortedSet(ObjectPool<
PooledSortedSet
<T>>? pool, IComparer<T>? comparer = null)
43
private static readonly ObjectPool<
PooledSortedSet
<T>> s_poolInstance = CreatePool();
44
private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<
PooledSortedSet
<T>>> s_poolInstancesByComparer = new();
46
private static ObjectPool<
PooledSortedSet
<T>> CreatePool(IComparer<T>? comparer = null)
48
ObjectPool<
PooledSortedSet
<T>>? pool = null;
49
pool = new ObjectPool<
PooledSortedSet
<T>>(
60
public static
PooledSortedSet
<T> GetInstance(IComparer<T>? comparer = null)
65
var
instance = pool.Allocate();
76
public static
PooledSortedSet
<T> GetInstance(IEnumerable<T> initializer, IComparer<T>? comparer = null)
78
var
instance = GetInstance(comparer);