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