134 references to Decrement
mscorlib (18)
system\Collections\Concurrent\ConcurrentQueue.cs (4)
345
Interlocked.
Decrement
(ref m_numSnapshotTakers);
566
Interlocked.
Decrement
(ref m_numSnapshotTakers);
631
Interlocked.
Decrement
(ref m_numSnapshotTakers);
637
Interlocked.
Decrement
(ref m_numSnapshotTakers);
system\collections\concurrent\PartitionerStatic.cs (2)
685
Interlocked.
Decrement
(ref m_activeCopiers);
1006
if (m_activePartitionCount != null && Interlocked.
Decrement
(ref m_activePartitionCount.Value) == 0)
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
483
int newCount = Interlocked.
Decrement
(ref _count);
system\threading\CountdownEvent.cs (1)
199
int newCount = Interlocked.
Decrement
(ref m_currentCount);
system\threading\SpinLock.cs (2)
590
Interlocked.
Decrement
(ref m_owner);
654
Interlocked.
Decrement
(ref m_owner);
system\threading\Tasks\Task.cs (6)
1030
Interlocked.
Decrement
(ref props.m_completionCountdown);
2231
Interlocked.
Decrement
(ref props.m_completionCountdown) == 0) // Reaching this sub clause means there may be remaining active children,
2401
if (Interlocked.
Decrement
(ref props.m_completionCountdown) == 0)
5235
if (Interlocked.
Decrement
(ref _count) == 0) Set();
6129
if (Interlocked.
Decrement
(ref m_count) == 0)
6373
if (Interlocked.
Decrement
(ref m_count) == 0)
system\threading\Tasks\TaskFactory.cs (2)
1660
if (Interlocked.
Decrement
(ref _count) == 0)
1738
if (Interlocked.
Decrement
(ref _count) == 0)
PresentationCore (1)
Core\CSharp\System\Windows\Media\SafeMILHandleMemoryPressure.cs (1)
47
if (Interlocked.
Decrement
(ref _refCount) == 0)
PresentationFramework (1)
src\Framework\MS\Internal\Utility\MonitorWrapper.cs (1)
35
int count = Interlocked.
Decrement
(ref _enterCount);
System (23)
net\System\Net\_Connection.cs (1)
1379
int currentCount = Interlocked.
Decrement
(ref m_ReservedCount);
net\System\Net\_PooledStream.cs (2)
472
if (ServicePointManager.UseSafeSynchronousClose && ClosingFlag == Interlocked.
Decrement
(ref m_SynchronousIOClosingState)) {
505
if (ServicePointManager.UseSafeSynchronousClose && ClosingFlag == Interlocked.
Decrement
(ref m_SynchronousIOClosingState)) {
net\System\Net\Cache\_CacheStreams.cs (6)
145
Interlocked.
Decrement
(ref m_ReadNesting);
256
Interlocked.
Decrement
(ref m_ReadNesting);
263
if (Interlocked.
Decrement
(ref m_ReadNesting) != 0) {
500
Interlocked.
Decrement
(ref m_ReadNesting);
697
Interlocked.
Decrement
(ref m_ReadNesting);
704
if (Interlocked.
Decrement
(ref m_ReadNesting) != 0) {
net\System\Net\connectionpool.cs (4)
510
Interlocked.
Decrement
(ref m_WaitCount);
518
int newWaitCount = Interlocked.
Decrement
(ref m_WaitCount);
536
Interlocked.
Decrement
(ref m_WaitCount);
568
Interlocked.
Decrement
(ref m_WaitCount);
net\System\Net\mail\MultiAsyncResult.cs (1)
41
if (System.Threading.Interlocked.
Decrement
(ref this.outstanding) == -1)
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
585
if (Interlocked.
Decrement
(ref m_CleanupCount) == 0) {
net\System\Net\webclient.cs (1)
110
Interlocked.
Decrement
(ref m_CallNesting);
sys\system\collections\concurrent\BlockingCollection.cs (1)
531
Interlocked.
Decrement
(ref m_currentAdders);
sys\System\IO\compression\DeflateStream.cs (3)
420
Interlocked.
Decrement
( ref asyncOperations);
667
Interlocked.
Decrement
(ref asyncOperations);
734
Interlocked.
Decrement
(ref asyncOperations);
sys\system\io\ports\SerialStream.cs (2)
1785
if (Interlocked.
Decrement
(ref asyncResult._numBytes) == 0)
1806
if (Interlocked.
Decrement
(ref asyncResult._numBytes) == 0)
sys\system\runtime\interopservices\handlecollector.cs (1)
98
Interlocked.
Decrement
( ref handleCount);
System.AddIn (1)
System\Addin\Hosting\AddInServer.cs (1)
87
long val = Interlocked.
Decrement
(ref _addInAppDomains);
System.Core (4)
System\Diagnostics\PerformanceData\CounterSet.cs (1)
82
Interlocked.
Decrement
(ref m_provider.m_counterSet);
System\IO\BufferedStream2.cs (2)
125
Interlocked.
Decrement
(ref _pendingBufferCopy);
154
Interlocked.
Decrement
(ref _pendingBufferCopy);
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (1)
728
if (Interlocked.
Decrement
(ref m_activeEnumeratorsCount.Value) == 0)
System.Data (23)
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (10)
1275
Interlocked.
Decrement
(ref _waitCount);
1282
Interlocked.
Decrement
(ref _waitCount);
1293
Interlocked.
Decrement
(ref _waitCount);
1301
Interlocked.
Decrement
(ref _waitCount);
1327
Interlocked.
Decrement
(ref _waitCount);
1359
Interlocked.
Decrement
(ref _waitCount);
1364
Interlocked.
Decrement
(ref _waitCount);
1368
Interlocked.
Decrement
(ref _waitCount);
1372
Interlocked.
Decrement
(ref _waitCount);
1376
Interlocked.
Decrement
(ref _waitCount);
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
782
int result = Interlocked.
Decrement
(ref _startCount);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
911
Interlocked.
Decrement
(ref _asyncCommandCount);
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (1)
305
Int32 openResultCount = Interlocked.
Decrement
(ref _openResultCount);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
384
Interlocked.
Decrement
(ref _nonTransactedOpenResultCount);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (9)
799
int result = Interlocked.
Decrement
(ref _activateCount); // must have non-zero activation count for reclaimation to work too.
821
int remaining = Interlocked.
Decrement
(ref _pendingCallbacks);
1959
Interlocked.
Decrement
(ref _readingCount);
1985
Interlocked.
Decrement
(ref _readingCount);
2170
Interlocked.
Decrement
(ref _readingCount);
2301
Interlocked.
Decrement
(ref _readingCount);
2340
Interlocked.
Decrement
(ref _readingCount);
2355
Interlocked.
Decrement
(ref _readingCount);
2611
Interlocked.
Decrement
(ref _asyncWriteCount);
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CryptoHandle.cs (1)
249
int refcount = Interlocked.
Decrement
(ref m_refcount);
System.Runtime.DurableInstancing (1)
System\Runtime\PersistencePipeline.cs (1)
535
return Interlocked.
Decrement
(ref this.remainingModules) == 0;
System.Runtime.Remoting (1)
channels\core\requestqueue.cs (1)
153
Interlocked.
Decrement
(ref _workItemCount);
System.ServiceModel (22)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (1)
169
if (Interlocked.
Decrement
(ref this.asyncWriteCount) != 0)
System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (1)
96
if (Interlocked.
Decrement
(ref count) == 0)
System\ServiceModel\Channels\LifetimeManager.cs (3)
139
if (Interlocked.
Decrement
(ref busyWaiterCount) == 0)
174
if (Interlocked.
Decrement
(ref this.busyWaiterCount) == 0)
265
if (Interlocked.
Decrement
(ref this.busyWaiterCount) == 0)
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (1)
87
Interlocked.
Decrement
(ref incompleteMessageCount);
System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (1)
71
if (Interlocked.
Decrement
(ref count) == 0)
System\ServiceModel\Channels\PeerFlooder.cs (1)
543
Interlocked.
Decrement
(ref outgoingEnqueuedCount);
System\ServiceModel\Channels\PeerHelpers.cs (1)
44
int value = Interlocked.
Decrement
(ref enqueuedCount);
System\ServiceModel\Channels\ServiceChannel.cs (1)
881
int updatedActivityCount = Interlocked.
Decrement
(ref this.activityCount);
System\ServiceModel\Channels\UtilityExtension.cs (1)
138
Interlocked.
Decrement
(ref pendingSends);
System\ServiceModel\ComIntegration\TypeLibraryHelper.cs (1)
55
if (0 == Interlocked.
Decrement
(ref instanceCount))
System\ServiceModel\Dispatcher\InstanceContextManager.cs (1)
350
if (Interlocked.
Decrement
(ref count) == 0)
System\ServiceModel\Dispatcher\QueryProcessor.cs (1)
965
return (Interlocked.
Decrement
(ref this.refCount) == 0);
System\ServiceModel\Security\SecurityListenerSettingsLifetimeManager.cs (3)
34
if (Interlocked.
Decrement
(ref this.referenceCount) == 0)
121
if (Interlocked.
Decrement
(ref this.referenceCount) == 0)
150
if (Interlocked.
Decrement
(ref this.referenceCount) == 0)
System\ServiceModel\ServiceChannelManager.cs (4)
184
if (Interlocked.
Decrement
(ref this.activityWaiterCount) == 0)
226
if (Interlocked.
Decrement
(ref this.activityWaiterCount) == 0)
242
if (Interlocked.
Decrement
(ref this.activityWaiterCount) == 0)
304
if (Interlocked.
Decrement
(ref this.activityWaiterCount) == 0)
System\ServiceModel\ServiceHost.cs (1)
1229
Interlocked.
Decrement
(ref this.busyCount);
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\CollectibleLRUCache.cs (1)
353
int currentCount = Interlocked.
Decrement
(ref this.totalCollectCount);
System\ServiceModel\Activation\HostedImpersonationContext.cs (1)
118
int currentCount = Interlocked.
Decrement
(ref refCount);
System.Transactions (5)
System\Transactions\CommittableTransaction.cs (1)
189
long remainingITx = Interlocked.
Decrement
(ref this.internalTransaction.cloneCount);
System\Transactions\Oletx\OleTxTransaction.cs (2)
707
Interlocked.
Decrement
(ref this.undecidedEnlistmentCount);
1356
int localCount = Interlocked.
Decrement
( ref this.undisposedOletxTransactionCount );
System\Transactions\Transaction.cs (1)
1155
long remainingITx = Interlocked.
Decrement
(ref this.internalTransaction.cloneCount);
System\Transactions\TransactionTable.cs (1)
86
Interlocked.
Decrement
( ref this.readersIn );
System.Web (30)
AspNetSynchronizationContext.cs (1)
104
Interlocked.
Decrement
(ref _state.VoidAsyncOutstandingOperationCount); // this line goes first since ChangeOperationCount might invoke a callback which depends on this value
Cache\OutputCache.cs (1)
128
Interlocked.
Decrement
(ref s_cEntries);
Cache\SqlCacheDependency.cs (2)
982
Interlocked.
Decrement
(ref s_activePolling);
1178
Interlocked.
Decrement
(ref dbState._refCount);
Compilation\BuildManagerHost.cs (1)
154
Interlocked.
Decrement
(ref _pendingCallsCount);
Compilation\CompilationLock.cs (2)
121
Interlocked.
Decrement
(ref _lockStatus);
148
Interlocked.
Decrement
(ref _lockStatus);
FileChangesMonitor.cs (3)
517
Interlocked.
Decrement
(ref _activeDirMonCompletions);
2061
Interlocked.
Decrement
(ref _activeCallbackCount);
2081
Interlocked.
Decrement
(ref _activeCallbackCount);
Hosting\ApplicationManager.cs (3)
200
if (Interlocked.
Decrement
(ref _openCount) > 0)
743
Interlocked.
Decrement
(ref _activeHostingEnvCount);
756
Interlocked.
Decrement
(ref _accessibleHostingEnvCount);
Hosting\HostingEnvironment.cs (1)
834
Interlocked.
Decrement
(ref _busyCount);
Hosting\IPipelineRuntime.cs (1)
629
Interlocked.
Decrement
(ref _inIndicateCompletionCount);
Hosting\ISAPIWorkerRequest.cs (4)
859
if (Interlocked.
Decrement
(ref _cachedResponseBodyBytesIoLockCount) == 0) {
976
if (Interlocked.
Decrement
(ref _endOfRequestCallbackLockCount) == 0) {
2423
Interlocked.
Decrement
(ref _asyncIoCount);
2479
Interlocked.
Decrement
(ref _asyncIoCount);
HttpRuntime.cs (4)
1381
Interlocked.
Decrement
(ref _theRuntime._activeRequestCount);
1636
Interlocked.
Decrement
(ref _activeRequestCount);
1659
Interlocked.
Decrement
(ref _activeRequestCount);
1835
Interlocked.
Decrement
(ref _activeRequestCount);
LegacyAspNetSynchronizationContext.cs (1)
166
int pendingCount = Interlocked.
Decrement
(ref _pendingCount);
Management\SqlWebEventProvider.cs (1)
227
Interlocked.
Decrement
(ref _connectionCount);
Management\webeventbuffer.cs (1)
550
Interlocked.
Decrement
(ref _threadsInFlush);
RequestQueue.cs (1)
226
Interlocked.
Decrement
(ref _workItemCount);
RequestTimeoutManager.cs (2)
137
Interlocked.
Decrement
(ref _requestCount);
186
return Interlocked.
Decrement
( ref _count );
Util\ReadWriteSpinLock.cs (1)
128
int n = Interlocked.
Decrement
(ref _bits);
WindowsBase (1)
Base\System\Windows\WeakEventManager.cs (1)
892
Interlocked.
Decrement
(ref _users);