21 references to Add
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1197Interlocked.Add(ref totalTicks.Value, elapsed);
Microsoft.Extensions.Caching.Memory (4)
MemoryCache.cs (4)
182Interlocked.Add(ref coherentState._cacheSize, -entry.Size + (priorEntry?.Size).GetValueOrDefault()); 278Interlocked.Add(ref coherentState._cacheSize, -entry.Size); 731Interlocked.Add(ref _cacheSize, -entry.Size); 740Interlocked.Add(ref _cacheSize, -entry.Size);
Microsoft.Extensions.Telemetry (1)
Latency\Internal\MeasureTracker.cs (1)
70_ = Interlocked.Add(ref _measureValues[pos], value);
Microsoft.ML.FastTree (4)
Training\Test.cs (2)
636Interlocked.Add(ref totalNpos, localNpos); 637Interlocked.Add(ref totalNneg, localNneg);
Utils\Timer.cs (2)
219Interlocked.Add(ref _state.CountTotals[(int)e], counts); 240Interlocked.Add(ref _state.TickTotals[(int)_event], _state.Watch.ElapsedTicks - _ticksBegin);
System.Net.Sockets (2)
System\Net\Sockets\SocketsTelemetry.cs (2)
212Interlocked.Add(ref _bytesReceived, count); 219Interlocked.Add(ref _bytesSent, count);
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (3)
82=> Interlocked.Add(ref _filePosition, actualBytesTransferred - expectedBytesTransferred); 259long writeOffset = CanSeek ? Interlocked.Add(ref _filePosition, source.Length) - source.Length : -1; 289long readOffset = Interlocked.Add(ref _filePosition, destination.Length) - destination.Length;
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (2)
97Interlocked.Add(ref s_hiddenLastKnownFreeAddressSpace, addend); 331Interlocked.Add(ref s_failPointReservedMemory, (long)size);
src\System\Threading\Interlocked.CoreCLR.cs (2)
25Add(ref location, 1); 41Add(ref location, -1);
System.Runtime.Caching (1)
System\Runtime\Caching\Counters.cs (1)
97Interlocked.Add(ref _counterValues[idx], value);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\ParallelRangeManager.cs (1)
129nMyOffset = Interlocked.Add(ref sharedCurrentIndexOffset.Value, _nIncrementValue) - _nIncrementValue;