4 references to CompareExchange
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
481snapshotOfTargetDuring = Interlocked.CompareExchange(ref target, targetPlusV, snapshotOfTargetBefore);
Microsoft.ML.FastTree (1)
GamTrainer.cs (1)
517Interlocked.CompareExchange(ref meanEffects[featureIndex], newTotalEffect, totalEffect));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\CounterAggregator.cs (1)
51while (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)
152double result = Interlocked.CompareExchange(ref _bufferedValues[i], value, UnusedBufferSlotValue);