93 references to Decrement
dotnet-svcutil-lib (10)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (1)
96if (Interlocked.Decrement(ref _count) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (3)
119if (Interlocked.Decrement(ref _busyWaiterCount) == 0) 154if (Interlocked.Decrement(ref _busyWaiterCount) == 0) 245if (Interlocked.Decrement(ref _busyWaiterCount) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (1)
71if (Interlocked.Decrement(ref _count) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (1)
823int updatedActivityCount = Interlocked.Decrement(ref _activityCount);
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (4)
184if (Interlocked.Decrement(ref _activityWaiterCount) == 0) 226if (Interlocked.Decrement(ref _activityWaiterCount) == 0) 242if (Interlocked.Decrement(ref _activityWaiterCount) == 0) 304if (Interlocked.Decrement(ref _activityWaiterCount) == 0)
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
160Interlocked.Decrement(ref _waitingRequestCount); 593Interlocked.Decrement(ref _requestsInFlight);
Microsoft.AspNetCore.ConcurrencyLimiter (1)
ConcurrencyLimiterEventSource.cs (1)
77Interlocked.Decrement(ref _parent._queueLength);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
TestUtils.cs (1)
93Interlocked.Decrement(ref _queuedRequests);
Microsoft.AspNetCore.Http (2)
src\Shared\CancellationTokenSourcePool.cs (2)
19Interlocked.Decrement(ref _count); 29Interlocked.Decrement(ref _count);
Microsoft.AspNetCore.Server.HttpSys (3)
AsyncAcceptContext.cs (2)
143var value = Interlocked.Decrement(ref _expectedCompletionCount); // should have been 1, so now 0 155var value = Interlocked.Decrement(ref _expectedCompletionCount); // should have been 1, so now 0
MessagePump.cs (1)
148return Interlocked.Decrement(ref _outstandingRequests);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http2\Http2Connection.cs (1)
1839Interlocked.Decrement(ref _clientActiveStreamCount);
src\Shared\CancellationTokenSourcePool.cs (2)
19Interlocked.Decrement(ref _count); 29Interlocked.Decrement(ref _count);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
SchedulerBenchmark.cs (1)
92var result = Interlocked.Decrement(ref _counters[counter].Remaining);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Internal\SocketSenderPool.cs (2)
29Interlocked.Decrement(ref _count); 40Interlocked.Decrement(ref _count);
Microsoft.Build.Engine.OM.UnitTests (4)
Construction\ProjectRootElement_Tests.cs (4)
1045if (Interlocked.Decrement(ref remaining) == 0) 1070if (Interlocked.Decrement(ref remaining) == 0) 1117if (Interlocked.Decrement(ref remaining) == 0) 1138if (Interlocked.Decrement(ref remaining) == 0)
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1834Interlocked.Decrement(ref _eventQueueEnqueuePendingCount);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
478public bool SignalWorkerCompletedIterating() => Interlocked.Decrement(ref _completionRefCount) == 0;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
BlindAggregatorFactory.cs (1)
164var result = unchecked((uint)Interlocked.Decrement(ref pThis->_refCount));
Microsoft.CodeAnalysis.Features (1)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerProgressReporter.cs (1)
69if (start ? (Interlocked.Increment(ref referenceCount) == 1) : (Interlocked.Decrement(ref referenceCount) == 0))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
478public bool SignalWorkerCompletedIterating() => Interlocked.Decrement(ref _completionRefCount) == 0;
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.CacheItem.cs (1)
47int newCount = Interlocked.Decrement(ref _refCount);
Internal\DefaultHybridCache.Debug.cs (1)
40_ = Interlocked.Decrement(ref _outstandingBufferCount);
Microsoft.Extensions.ObjectPool (2)
DefaultObjectPool.cs (2)
55Interlocked.Decrement(ref _numItems); 93Interlocked.Decrement(ref _numItems);
Microsoft.Maui.Controls (2)
NavigationPage\NavigationPage.cs (1)
674 if (Interlocked.Decrement(ref _waitingCount) == 0)
Shell\ShellNavigatingEventArgs.cs (1)
75 if (Interlocked.Decrement(ref _deferralCount) == 0)
Microsoft.Maui.Controls.Compatibility (1)
iOS\Renderers\WkWebViewRenderer.cs (1)
273 if (Interlocked.Decrement(ref _sharedPoolCount) == 0 && Forms.IsiOS12OrNewer)
Microsoft.Maui.Controls.Foldable (1)
DualScreenInfo.cs (1)
108 ProcessHingeAngleSubscriberCount(Interlocked.Decrement(ref subscriberCount));
Microsoft.ML.Data (4)
Data\DataViewUtils.cs (1)
610int remaining = Interlocked.Decrement(ref outputsRunning);
DataLoadSave\Text\TextLoaderCursor.cs (2)
445int n = Interlocked.Decrement(ref _cref); 966if (Interlocked.Decrement(ref _threadsRunning) <= 0)
DataLoadSave\Text\TextLoaderParser.cs (1)
164int n = Interlocked.Decrement(ref _cref);
PresentationCore (1)
System\Windows\Media\SafeMILHandleMemoryPressure.cs (1)
35if (Interlocked.Decrement(ref _refCount) == 0)
PresentationFramework (1)
MS\Internal\Utility\MonitorWrapper.cs (1)
29int count = Interlocked.Decrement(ref _enterCount);
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\ActivityLevel.cs (1)
64var current = Interlocked.Decrement(ref _isActive);
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
222Interlocked.Decrement(ref _operationCount) == 0)
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (1)
493Interlocked.Decrement(ref _currentAdders);
System\Collections\Concurrent\PartitionerStatic.cs (2)
656Interlocked.Decrement(ref _activeCopiers); 960if (_activePartitionCount != null && Interlocked.Decrement(ref _activePartitionCount.Value) == 0)
System.Data.Odbc (7)
Common\System\Data\ProviderBase\DbConnectionPool.cs (6)
745Interlocked.Decrement(ref _waitCount); 751Interlocked.Decrement(ref _waitCount); 764Interlocked.Decrement(ref _waitCount); 774Interlocked.Decrement(ref _waitCount); 800Interlocked.Decrement(ref _waitCount); 831Interlocked.Decrement(ref _waitCount);
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionInternal.cs (1)
227Interlocked.Decrement(ref _activateCount);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
496&& ((!_disabledRefCount && Interlocked.Decrement(ref _sharedSessionRefCount) == 0)
System.IO.Compression (2)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (2)
198Interlocked.Decrement(ref _asyncOperations); 244Interlocked.Decrement(ref _asyncOperations);
System.Linq.Parallel (1)
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (1)
703if (Interlocked.Decrement(ref _activeEnumeratorsCount.Value) == 0)
System.Net.Mail (1)
System\Net\Mime\MultiAsyncResult.cs (1)
32if (Interlocked.Decrement(ref _outstanding) == -1)
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicSafeHandle.cs (1)
182if (Interlocked.Decrement(ref _rentCount) < 0)
System\Net\Quic\QuicListener.cs (1)
326if (Interlocked.Decrement(ref _pendingConnectionsCapacity) < 0)
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
120if (Interlocked.Decrement(ref _rentCount) < 0)
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
140private void EndOperation() => Interlocked.Decrement(ref _callNesting);
System.Net.WebSockets (1)
System\Net\WebSockets\AsyncMutex.cs (1)
64int gate = Interlocked.Decrement(ref _gate);
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLock.cs (1)
201if (Interlocked.Decrement(ref _state) != 0)
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelSpinWaiter.cs (1)
48Interlocked.Decrement(ref _spinningThreadCount);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (1)
167Interlocked.Decrement(ref threadPoolInstance._separated.gateThreadRunningState) <= GetRunningStateForNumRuns(0))
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (2)
465Interlocked.Decrement(ref _owner); 523Interlocked.Decrement(ref _owner);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (6)
900Interlocked.Decrement(ref props.m_completionCountdown); 2006Interlocked.Decrement(ref props.m_completionCountdown) == 0) // Reaching this sub clause means there may be remaining active children, 2184if (Interlocked.Decrement(ref props!.m_completionCountdown) == 0) 5145if (Interlocked.Decrement(ref _count) == 0) Set(); 6134if (Interlocked.Decrement(ref _remainingToComplete) == 0) 6421if (Interlocked.Decrement(ref m_count) == 0)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (2)
1571if (Interlocked.Decrement(ref _count) == 0) 1641if (Interlocked.Decrement(ref _count) == 0)
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\HandleCollector.cs (1)
93Interlocked.Decrement(ref _handleCount);
System.Security.Cryptography (2)
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (1)
93int newReferenceCount = Interlocked.Decrement(ref _keyReferenceCount);
System\Security\Cryptography\ConcurrencyBlock.cs (1)
18Interlocked.Decrement(ref block._count);
System.Threading (1)
System\Threading\CountdownEvent.cs (1)
183int newCount = Interlocked.Decrement(ref _currentCount);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
588public bool SignalWorkerCompletedIterating() => Interlocked.Decrement(ref _completionRefCount) == 0;
System.Transactions.Local (3)
System\Transactions\CommittableTransaction.cs (1)
144long remainingITx = Interlocked.Decrement(ref _internalTransaction._cloneCount);
System\Transactions\Transaction.cs (1)
834long remainingITx = Interlocked.Decrement(ref _internalTransaction._cloneCount);
System\Transactions\TransactionTable.cs (1)
70Interlocked.Decrement(ref _readersIn);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
46int refCount = Interlocked.Decrement(ref _refCount);
UnitTests.Common (1)
TestTypes.cs (1)
299Interlocked.Decrement(ref _operationCount) == 0)