10 references to InterlockedCompareExchange
Microsoft.CodeAnalysis.Workspaces (10)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (9)
292var interlockedResult = InterlockedCompareExchange(ref location, newValue, oldValue); 335var interlockedResult = InterlockedCompareExchange(ref location, newValue, oldValue); 387return InterlockedCompareExchange(ref location, value, default(ImmutableSegmentedDictionary<TKey, TValue>)).IsDefault; 446var interlockedResult = InterlockedCompareExchange(ref location, updatedCollection, priorCollection); 484var interlockedResult = InterlockedCompareExchange(ref location, updatedCollection, priorCollection); 520var interlockedResult = InterlockedCompareExchange(ref location, updatedCollection, priorCollection); 548var interlockedResult = InterlockedCompareExchange(ref location, updatedCollection, priorCollection); 576var interlockedResult = InterlockedCompareExchange(ref location, updatedCollection, priorCollection); 602var interlockedResult = InterlockedCompareExchange(ref location, updatedCollection, priorCollection);
Workspace\Solution\SolutionCompilationState.cs (1)
1617if (originalProjectIdToTrackerMap == RoslynImmutableInterlocked.InterlockedCompareExchange(ref _projectIdToTrackerMap, updatedIdToTrackerMap, originalProjectIdToTrackerMap))