12 references to RoslynImmutableInterlocked
Microsoft.CodeAnalysis.Workspaces (12)
Diagnostics\Extensions.cs (1)
91
return
RoslynImmutableInterlocked
.GetOrAdd(
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
58
/// <see cref="
RoslynImmutableInterlocked
"/> class depends on it, as well as others externally.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (1)
15
/// Private helper class for use only by <see cref="
RoslynImmutableInterlocked
"/> and
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
100
var originalDictionary =
RoslynImmutableInterlocked
.InterlockedExchange(ref _dictionary, default);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
52
/// <see cref="
RoslynImmutableInterlocked
"/> class depends on it, as well as others externally.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (1)
15
/// Private helper class for use only by <see cref="
RoslynImmutableInterlocked
"/> and
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
66
var originalSet =
RoslynImmutableInterlocked
.InterlockedExchange(ref _set, default);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
59
/// <see cref="
RoslynImmutableInterlocked
"/> class depends on it, as well as others externally.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (1)
15
/// Private helper class for use only by <see cref="
RoslynImmutableInterlocked
"/> and
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
76
var originalList =
RoslynImmutableInterlocked
.InterlockedExchange(ref _list, default);
Workspace\Solution\SolutionCompilationState.cs (2)
1167
tracker =
RoslynImmutableInterlocked
.GetOrAdd(ref _projectIdToTrackerMap, projectId, s_createCompilationTrackerFunction, this.SolutionState);
1617
if (originalProjectIdToTrackerMap ==
RoslynImmutableInterlocked
.InterlockedCompareExchange(ref _projectIdToTrackerMap, updatedIdToTrackerMap, originalProjectIdToTrackerMap))