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