14 references to InterlockedOperations
Microsoft.CodeAnalysis.Workspaces (14)
Diagnostics\AnalysisResultPair.cs (5)
44return InterlockedOperations.Initialize( 69return InterlockedOperations.Initialize( 94return InterlockedOperations.Initialize( 119return InterlockedOperations.Initialize( 144return InterlockedOperations.Initialize(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (1)
95return InterlockedOperations.Initialize(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.Changes.cs (1)
32var map = InterlockedOperations.Initialize(ref _map, () => new ConcurrentDictionary<int, TriviaData>(concurrencyLevel: 1, capacity: 8));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (1)
257InterlockedOperations.Initialize(ref referenceCount._weakInstance, static instance => new WeakReference<T>(instance), instance);
Workspace\Solution\ProjectState.cs (3)
328return InterlockedOperations.Initialize( 336=> InterlockedOperations.Initialize( 344=> InterlockedOperations.Initialize(
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
255var buildLock = InterlockedOperations.Initialize(
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
114InterlockedOperations.Initialize(ref _unrootedSymbolToProjectId, s_createTable);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.RecoverableText.cs (1)
55private SemaphoreSlim Gate => InterlockedOperations.Initialize(ref _lazyGate, SemaphoreSlimFactory.Instance);