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