23 references to Add
Microsoft.Build (3)
BackEnd\Components\Communications\NodeManager.cs (1)
328fromNodeId = Interlocked.Add(ref _nextNodeId, numberOfNodesToCreate) - numberOfNodesToCreate;
BackEnd\Components\Logging\LoggingService.cs (2)
400return Interlocked.Add(ref _nextEvaluationId, MaxCPUCount + 2); 413return Interlocked.Add(ref _nextProjectId, MaxCPUCount + 2);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Synthesized\GeneratedLabelSymbol.cs (1)
40int seq = System.Threading.Interlocked.Add(ref s_sequence, 1);
Microsoft.CodeAnalysis.Features (2)
NavigateTo\NavigateToSearcher.cs (2)
119Interlocked.Add(ref _remainingProgressItems, count); 126var newValue = Interlocked.Add(ref _remainingProgressItems, -count);
Microsoft.CodeAnalysis.Workspaces (1)
Log\CountLogAggregator.cs (1)
60Interlocked.Add(ref _count, value);
System.Collections.Concurrent (1)
System\Collections\Concurrent\PartitionerStatic.cs (1)
645int endPos = Interlocked.Add(ref _fillBufferCurrentPosition, requestedChunkSize);
System.Diagnostics.Process (1)
System\Diagnostics\Process.ConfigureTerminalForChildProcesses.Unix.cs (1)
17int childrenUsingTerminalRemaining = Interlocked.Add(ref s_childrenUsingTerminalCount, increment);
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (1)
102Interlocked.Add(ref _headAndTail.Tail, FreezeOffset);
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLock.cs (1)
168int state = Interlocked.Add(ref _state, WaiterCountIncrement);
src\libraries\System.Private.CoreLib\src\System\Threading\ReaderWriterLockSlim.cs (2)
1555Interlocked.Add(ref _enterDeprioritizationState, deprioritizationStateChange); 1584Interlocked.Add(ref _enterDeprioritizationState, -deprioritizationStateChange);
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (1)
343turn = (Interlocked.Add(ref _owner, 2) & WAITERS_MASK) >> 1;
src\System\Threading\Interlocked.CoreCLR.cs (2)
18Add(ref location, 1); 34Add(ref location, -1);
System.Threading (6)
System\Threading\ReaderWriterLock.cs (6)
215knownState = Interlocked.Add(ref _state, modifyState) - modifyState; 241Interlocked.Add(ref _state, LockStates.Reader - LockStates.ReaderSignaled); 264Interlocked.Add(ref _state, -LockStates.ReaderSignaled); 380knownState = Interlocked.Add(ref _state, modifyState) - modifyState; 407knownState = Interlocked.Add(ref _state, modifyState) - modifyState; 1099Interlocked.Add(ref _state, -LockStates.CachingEvents);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\ParallelRangeManager.cs (1)
123nMyOffset = Interlocked.Add(ref *(int*)indexPtr, (int)_nIncrementValue) - _nIncrementValue;