3 references to InterlockedCompareExchange
Microsoft.CodeAnalysis (3)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (3)
167
var interlockedResult =
InterlockedCompareExchange
(ref location, newValue, oldValue);
208
var interlockedResult =
InterlockedCompareExchange
(ref location, newValue, oldValue);
254
return
InterlockedCompareExchange
(ref location, value, default(ImmutableSegmentedHashSet<T>)).IsDefault;