2 references to CompareExchange
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\CounterAggregator.cs (1)
51
while (Interlocked.
CompareExchange
(ref delta.Value, currentValue + value, currentValue) != currentValue);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventCounter.cs (1)
154
double result = Interlocked.
CompareExchange
(ref _bufferedValues[i], value, UnusedBufferSlotValue);