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