17 references to Add
mscorlib (5)
system\collections\concurrent\PartitionerStatic.cs (1)
674
int endPos = Interlocked.
Add
(ref m_FillBufferCurrentPosition, requestedChunkSize);
system\threading\interlocked.cs (2)
34
return
Add
(ref location, 1);
54
return
Add
(ref location, -1);
system\threading\SpinLock.cs (1)
363
turn = (Interlocked.
Add
(ref m_owner, 2) & WAITERS_MASK) >> 1 ;
system\threading\Tasks\ParallelRangeManager.cs (1)
128
nMyOffset = Interlocked.
Add
(ref *(int*)indexPtr, (int)m_nIncrementValue) - m_nIncrementValue;
System.Core (3)
System\IO\BufferedStream2.cs (1)
120
int newPos = Interlocked.
Add
(ref _writePos, count);
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (2)
1654
Interlocked.
Add
(ref _enterDeprioritizationState, deprioritizationStateChange);
1679
Interlocked.
Add
(ref _enterDeprioritizationState, -deprioritizationStateChange);
System.ServiceModel.Internals (7)
System\Runtime\IOThreadScheduler.cs (7)
152
int slot = Interlocked.
Add
(ref this.headTail, Bits.HiOne);
159
slot = Interlocked.
Add
(ref this.headTail, Bits.HiOne);
198
int slot = Interlocked.
Add
(ref this.headTailLowPri, Bits.HiOne);
500
gateSnapshot = Interlocked.
Add
(ref this.gate, Bits.LoHiBit);
517
gateSnapshot = Interlocked.
Add
(ref this.gate, Bits.HiHiBit);
531
int gateSnapshot = Interlocked.
Add
(ref this.gate, Bits.HiOne);
557
gateSnapshot = Interlocked.
Add
(ref this.gate, Bits.HiHiBit);
System.Web (2)
Util\CountdownTask.cs (1)
36
int newCount = Interlocked.
Add
(ref _pendingCount, delta);
Util\SynchronizationHelper.cs (1)
48
int newOperationCount = Interlocked.
Add
(ref _operationsInFlight, addend);