3 instantiations of ConcurrentSet
Microsoft.CodeAnalysis.Workspaces (3)
ExtensionManager\AbstractExtensionManager.cs (2)
12
private readonly ConcurrentSet<object> _disabledProviders =
new
(ReferenceEqualityComparer.Instance);
13
private readonly ConcurrentSet<object> _ignoredProviders =
new
(ReferenceEqualityComparer.Instance);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
197
var cachedModels = new
ConcurrentSet
<SemanticModel>();
19 references to ConcurrentSet
Microsoft.CodeAnalysis.Workspaces (19)
ExtensionManager\AbstractExtensionManager.cs (2)
12
private readonly
ConcurrentSet
<object> _disabledProviders = new(ReferenceEqualityComparer.Instance);
13
private readonly
ConcurrentSet
<object> _ignoredProviders = new(ReferenceEqualityComparer.Instance);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
197
var
cachedModels = new ConcurrentSet<SemanticModel>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (9)
82
public static PooledObject<
ConcurrentSet
<T>> GetPooledObject<T>(this ObjectPool<
ConcurrentSet
<T>> pool, out
ConcurrentSet
<T> set)
85
var pooledObject = PooledObject<
ConcurrentSet
<T>>.Create(pool);
125
public static
ConcurrentSet
<T> AllocateAndClear<T>(this ObjectPool<
ConcurrentSet
<T>> pool) where T : notnull
127
var
set = pool.Allocate();
219
public static void ClearAndFree<T>(this ObjectPool<
ConcurrentSet
<T>> pool,
ConcurrentSet
<T> set) where T : notnull
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
73
public static PooledObject<
ConcurrentSet
<TItem>> Create<TItem>(ObjectPool<
ConcurrentSet
<TItem>> pool) where TItem : notnull
75
return new PooledObject<
ConcurrentSet
<TItem>>(
130
private static
ConcurrentSet
<TItem> Allocator<TItem>(ObjectPool<
ConcurrentSet
<TItem>> pool) where TItem : notnull
136
private static void Releaser<TItem>(ObjectPool<
ConcurrentSet
<TItem>> pool,
ConcurrentSet
<TItem> obj) where TItem : notnull