597 references to Increment
Aspire.Dashboard (2)
Components\Pages\ConsoleLogs.razor.cs (1)
33private readonly int _subscriptionId = Interlocked.Increment(ref s_subscriptionId);
Otlp\Storage\Subscription.cs (1)
21private readonly int _subscriptionId = Interlocked.Increment(ref s_subscriptionId);
Aspire.Hosting.Tests (13)
Dcp\TestKubernetesService.cs (1)
65svc.Status.EffectivePort = svc.Spec.Port ?? Interlocked.Increment(ref _nextPort);
Eventing\DistributedApplicationBuilderEventingTests.cs (8)
27Interlocked.Increment(ref hitCount); 33Interlocked.Increment(ref hitCount); 58Interlocked.Increment(ref hitCount); 65Interlocked.Increment(ref hitCount); 91Interlocked.Increment(ref hitCount); 98Interlocked.Increment(ref hitCount); 125Interlocked.Increment(ref hitCount); 132Interlocked.Increment(ref hitCount);
Health\ResourceHealthCheckServiceTests.cs (4)
212Interlocked.Increment(ref hitCount); 252Interlocked.Increment(ref hitCount); 311Interlocked.Increment(ref healthCheckHits); 324Interlocked.Increment(ref eventHits);
Binding.ReliableSession.IntegrationTests (6)
NetHttpBindingTests.cs (3)
118Interlocked.Increment(ref callCount); 203Interlocked.Increment(ref httpRequestCount); 371Interlocked.Increment(ref httpRequestCount);
WSHttpBindingTests.cs (3)
118Interlocked.Increment(ref callCount); 203Interlocked.Increment(ref httpRequestCount); 371Interlocked.Increment(ref httpRequestCount);
Client.ChannelLayer.IntegrationTests (2)
DuplexChannelShapeTests.4.0.0.cs (2)
206Interlocked.Increment(ref Counter); 227Interlocked.Increment(ref Counter);
dotnet-svcutil-lib (12)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (1)
547_schemaId = Interlocked.Increment(ref s_globalIdCounter);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (3)
112Interlocked.Increment(ref _busyWaiterCount); 145Interlocked.Increment(ref _busyWaiterCount); 210Interlocked.Increment(ref _busyWaiterCount);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
1139Interlocked.Increment(ref _activityCount); 2254if (Interlocked.Increment(ref _waitCount) == 2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ServiceModelActivity.cs (1)
342newStopCount = Interlocked.Increment(ref _stopCount);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
792if (Interlocked.Increment(ref _waitCount) == 2)
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (4)
140Interlocked.Increment(ref _activityWaiterCount); 177Interlocked.Increment(ref _activityWaiterCount); 216Interlocked.Increment(ref _activityWaiterCount); 297Interlocked.Increment(ref _activityWaiterCount);
InMemory.FunctionalTests (2)
ConnectionLimitTests.cs (2)
184if (e && Interlocked.Increment(ref opened) >= count) 192if (Interlocked.Increment(ref closed) >= count)
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
152Interlocked.Increment(ref _waitingRequestCount); 586Interlocked.Increment(ref _requestsInFlight);
Interop.FunctionalTests (5)
Http3\Http3RequestTests.cs (1)
769Interlocked.Increment(ref requestCount);
HttpClientHttp2InteropTests.cs (4)
114if (Interlocked.Increment(ref requestsReceived) == requestCount) 162if (Interlocked.Increment(ref requestsReceived) == requestCount) 1206var count = Interlocked.Increment(ref requestCount); 1267var count = Interlocked.Increment(ref requestCount);
Microsoft.AspNetCore.Components.Tests (2)
NavigationManagerTest.cs (2)
319Interlocked.Increment(ref completedHandlerCount); 655Interlocked.Increment(ref completedHandlerCount);
Microsoft.AspNetCore.ConcurrencyLimiter (1)
ConcurrencyLimiterEventSource.cs (1)
54Interlocked.Increment(ref _queueLength);
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (2)
QueueFullOverhead.cs (1)
47if (Interlocked.Increment(ref _requestCount) == _numRequests)
QueueRequestsOverwritten.cs (1)
47if (Interlocked.Increment(ref _rejectionCount) == _numRejects)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
TestUtils.cs (1)
91Interlocked.Increment(ref _queuedRequests);
Microsoft.AspNetCore.HeaderParsing (1)
HeaderRegistry.cs (1)
47var pos = Interlocked.Increment(ref _current);
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
196if (Interlocked.Increment(ref measureCount) > 1)
Microsoft.AspNetCore.Http (1)
src\Shared\CancellationTokenSourcePool.cs (1)
27if (Interlocked.Increment(ref _count) > MaxQueueSize || !cts.TryReset())
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\OrderedEndpointsSequenceProvider.cs (1)
18return Interlocked.Increment(ref _current);
Routing\ControllerActionEndpointDataSourceIdProvider.cs (1)
12return Interlocked.Increment(ref _nextId);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageActionEndpointDataSourceIdProvider.cs (1)
12return Interlocked.Increment(ref _nextId);
Microsoft.AspNetCore.Server.HttpSys (2)
MessagePump.cs (1)
143return Interlocked.Increment(ref _outstandingRequests);
NativeInterop\HttpServerSessionHandle.cs (1)
34if (Interlocked.Increment(ref disposed) == 1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Listener\ResponseHeaderTests.cs (1)
221Interlocked.Increment(ref connectCallbackInvocations);
ServerTests.cs (1)
254if (Interlocked.Increment(ref requestCount) == requestLimit)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http2\Http2Connection.cs (2)
1314if (IsEnhanceYourCalmLimitEnabled && Interlocked.Increment(ref _enhanceYourCalmCount) > EnhanceYourCalmTickWindowCount * EnhanceYourCalmMaximumCount) 1834Interlocked.Increment(ref _clientActiveStreamCount);
src\Shared\CancellationTokenSourcePool.cs (1)
27if (Interlocked.Increment(ref _count) > MaxQueueSize || !cts.TryReset())
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketSenderPool.cs (1)
38if (_disposed || Interlocked.Increment(ref _count) > MaxQueueSize)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestConnection.cs (1)
206Interlocked.Increment(ref _disposeCount);
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
52var claimValue = Interlocked.Increment(ref _id).ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisHubLifetimeManager.cs (1)
348var id = Interlocked.Increment(ref _internalAckId);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
TestConnectionMultiplexer.cs (1)
314_id = Interlocked.Increment(ref StaticId);
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
52var claimValue = Interlocked.Increment(ref _id).ToString(CultureInfo.InvariantCulture);
Microsoft.Build (9)
BackEnd\BuildManager\BuildManager.cs (3)
1514return Interlocked.Increment(ref s_nextBuildId); 2189int newId = Interlocked.Increment(ref s_nextBuildRequestConfigurationId); 2196newId = Interlocked.Increment(ref s_nextBuildRequestConfigurationId);
BackEnd\Components\Logging\LoggingService.cs (2)
425return Interlocked.Increment(ref _nextTargetId); 437return Interlocked.Increment(ref _nextTaskId);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1487Interlocked.Increment(ref _availableThreads);
Construction\ProjectRootElement.cs (1)
2129Version = Interlocked.Increment(ref s_globalVersionCounter);
Evaluation\ConditionEvaluator.cs (1)
160Interlocked.Increment(ref _mOptimisticSize);
Instance\TaskRegistry.cs (1)
716Interlocked.Increment(ref _nextRegistrationOrderId));
Microsoft.Build.Engine.OM.UnitTests (5)
Construction\ProjectRootElement_Tests.cs (4)
1041var current = Interlocked.Increment(ref counter) - 1; 1064var current = Interlocked.Increment(ref counter) - 1; 1112var current = Interlocked.Increment(ref counter) - 1; 1134var current = Interlocked.Increment(ref counter) - 1;
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
158this.CollectionId = (UInt32)Interlocked.Increment(ref _collecitonId);
Microsoft.Build.Engine.UnitTests (3)
ProjectCache\ProjectCacheTests.cs (3)
293var queryId = Interlocked.Increment(ref _nextId); 1597Interlocked.Increment(ref nonCacheHitCount); 1602Interlocked.Increment(ref cacheHitCount);
Microsoft.Build.Tasks.UnitTests (1)
Copy_Tests.cs (1)
3016Interlocked.Increment(ref copyCount);
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
2319Interlocked.Increment(ref incremented);
Microsoft.CodeAnalysis (3)
Compilation\Compilation.cs (1)
1829Interlocked.Increment(ref _eventQueueEnqueuePendingCount);
InternalUtilities\StringTable.cs (1)
672return Interlocked.Increment(ref StringTable.s_sharedRandom);
Operations\ControlFlowGraphBuilder.CaptureIdDispenser.cs (1)
17return Interlocked.Increment(ref _captureId);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
672return Interlocked.Increment(ref StringTable.s_sharedRandom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (1)
154=> Interlocked.Increment(ref s_lastUniqueBlockId);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
459Interlocked.Increment(ref _completionRefCount);
Microsoft.CodeAnalysis.CSharp (4)
BoundTree\UnboundLambda.cs (1)
571Interlocked.Increment(ref data.LambdaBindingCount);
Symbols\FunctionTypeSymbol.cs (1)
91Interlocked.Increment(ref data.InferredDelegateCount);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
102Interlocked.Increment(ref _cachedSpecialTypes);
Symbols\Synthesized\SynthesizedLocal.cs (1)
203private readonly int _sequence = System.Threading.Interlocked.Increment(ref _nextSequence);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
202var generator = new CallbackGenerator(onInit: _ => { }, onExecute: _ => Interlocked.Increment(ref generatorRanCount));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (232)
Semantics\PrimaryConstructorTests.cs (134)
3773Interlocked.Increment(ref FireCount0); 3777Interlocked.Increment(ref FireCount1); 3781Interlocked.Increment(ref FireCount2); 3786Interlocked.Increment(ref FireCount3); 3790Interlocked.Increment(ref FireCount4); 3794Interlocked.Increment(ref FireCount5); 3812Interlocked.Increment(ref FireCount15); 3816Interlocked.Increment(ref FireCount16); 3820Interlocked.Increment(ref FireCount6); 3838Interlocked.Increment(ref FireCount7); 3851Interlocked.Increment(ref FireCount8); 3865Interlocked.Increment(ref FireCount9); 3887Interlocked.Increment(ref FireCount11); 3890Interlocked.Increment(ref FireCount12); 3893Interlocked.Increment(ref FireCount13); 3917Interlocked.Increment(ref FireCount18); 3921Interlocked.Increment(ref FireCount19); 3931Interlocked.Increment(ref FireCount24); 3935Interlocked.Increment(ref FireCount25); 3939Interlocked.Increment(ref FireCount26); 3955Interlocked.Increment(ref FireCount20); 3958Interlocked.Increment(ref FireCount21); 3961Interlocked.Increment(ref FireCount22); 3972Interlocked.Increment(ref FireCount23); 3996Interlocked.Increment(ref FireCount27); 4000Interlocked.Increment(ref FireCount28); 4004Interlocked.Increment(ref FireCount29); 4022Interlocked.Increment(ref FireCount30); 4026Interlocked.Increment(ref FireCount31); 4090Interlocked.Increment(ref FireCount1); 4093Interlocked.Increment(ref FireCount3); 4096Interlocked.Increment(ref FireCount4); 4099Interlocked.Increment(ref FireCount5); 4102Interlocked.Increment(ref FireCount6); 4105Interlocked.Increment(ref FireCount7); 4176Interlocked.Increment(ref FireCount1); 4180Interlocked.Increment(ref FireCount3); 4183Interlocked.Increment(ref FireCount4); 4187Interlocked.Increment(ref FireCount5); 4190Interlocked.Increment(ref FireCount9); 4198Interlocked.Increment(ref FireCount10); 4214Interlocked.Increment(ref FireCount6); 4220Interlocked.Increment(ref FireCount8); 4226Interlocked.Increment(ref FireCount11); 4235Interlocked.Increment(ref FireCount12); 4327Interlocked.Increment(ref FireCount1); 4331Interlocked.Increment(ref FireCount2); 4335Interlocked.Increment(ref FireCount3); 4349Interlocked.Increment(ref FireCount4); 4364Interlocked.Increment(ref FireCount5); 4390Interlocked.Increment(ref FireCount6); 4394Interlocked.Increment(ref FireCount7); 4398Interlocked.Increment(ref FireCount8); 4402Interlocked.Increment(ref FireCount9); 4406Interlocked.Increment(ref FireCount10); 4410Interlocked.Increment(ref FireCount11); 4414Interlocked.Increment(ref FireCount12); 4418Interlocked.Increment(ref FireCount13); 4422Interlocked.Increment(ref FireCount17); 4436Interlocked.Increment(ref FireCount14); 4440Interlocked.Increment(ref FireCount15); 4444Interlocked.Increment(ref FireCount16); 4512Interlocked.Increment(ref FireCount1); 4523Interlocked.Increment(ref FireCount2); 4537Interlocked.Increment(ref FireCount3); 4553Interlocked.Increment(ref FireCount4); 4646Interlocked.Increment(ref FireCount100); 4659Interlocked.Increment(ref FireCount200); 4675Interlocked.Increment(ref FireCount300); 4693Interlocked.Increment(ref FireCount400); 4720Interlocked.Increment(ref FireCount1000); 4731Interlocked.Increment(ref FireCount2000); 4745Interlocked.Increment(ref FireCount3000); 4761Interlocked.Increment(ref FireCount4000); 4830Interlocked.Increment(ref FireCount1); 4841Interlocked.Increment(ref FireCount2); 4852Interlocked.Increment(ref FireCount3); 4863Interlocked.Increment(ref FireCount4); 4975Interlocked.Increment(ref FireCount100); 4986Interlocked.Increment(ref FireCount200); 4997Interlocked.Increment(ref FireCount300); 5008Interlocked.Increment(ref FireCount400); 5043Interlocked.Increment(ref FireCount1000); 5054Interlocked.Increment(ref FireCount2000); 5065Interlocked.Increment(ref FireCount3000); 5076Interlocked.Increment(ref FireCount4000); 5152Interlocked.Increment(ref FireCount1); 5155Interlocked.Increment(ref FireCount2); 5158Interlocked.Increment(ref FireCount3); 5161Interlocked.Increment(ref FireCount4); 5184Interlocked.Increment(ref FireCount7); 5187Interlocked.Increment(ref FireCount8); 5190Interlocked.Increment(ref FireCount9); 5275Interlocked.Increment(ref FireCount0); 5279Interlocked.Increment(ref FireCount7); 5283Interlocked.Increment(ref FireCount12); 5301Interlocked.Increment(ref FireCount3); 5319Interlocked.Increment(ref FireCountThisConstructorInitializer); 5332Interlocked.Increment(ref FireCountConstructorDeclaration); 5349Interlocked.Increment(ref FireCountStructDeclarationA); 5366Interlocked.Increment(ref FireCount5); 5382Interlocked.Increment(ref FireCountSimpleBaseTypeI1onA); 5406Interlocked.Increment(ref FireCountParameterListAPrimaryCtor); 5410Interlocked.Increment(ref FireCountStringParameterList); 5428Interlocked.Increment(ref FireCount11); 5493Interlocked.Increment(ref FireCount1); 5496Interlocked.Increment(ref FireCount3); 5499Interlocked.Increment(ref FireCount4); 5502Interlocked.Increment(ref FireCount5); 5505Interlocked.Increment(ref FireCount6); 5508Interlocked.Increment(ref FireCount7); 5580Interlocked.Increment(ref FireCount1); 5584Interlocked.Increment(ref FireCount3); 5587Interlocked.Increment(ref FireCount4); 5591Interlocked.Increment(ref FireCount5); 5594Interlocked.Increment(ref FireCount9); 5602Interlocked.Increment(ref FireCount10); 5618Interlocked.Increment(ref FireCount6); 5624Interlocked.Increment(ref FireCount8); 5630Interlocked.Increment(ref FireCount11); 5639Interlocked.Increment(ref FireCount12); 5695Interlocked.Increment(ref FireCount1); 5717Interlocked.Increment(ref FireCount6); 5721Interlocked.Increment(ref FireCount7); 5735Interlocked.Increment(ref FireCount14); 5787Interlocked.Increment(ref FireCount1); 5849Interlocked.Increment(ref FireCount1); 5860Interlocked.Increment(ref FireCount4); 5941Interlocked.Increment(ref FireCount100); 5952Interlocked.Increment(ref FireCount400); 5963Interlocked.Increment(ref FireCount500); 5999Interlocked.Increment(ref FireCount1000); 6010Interlocked.Increment(ref FireCount4000); 6021Interlocked.Increment(ref FireCount5000);
Semantics\RecordTests.cs (98)
26258Interlocked.Increment(ref FireCount0); 26262Interlocked.Increment(ref FireCount1); 26266Interlocked.Increment(ref FireCount2); 26271Interlocked.Increment(ref FireCount3); 26275Interlocked.Increment(ref FireCount4); 26279Interlocked.Increment(ref FireCount5); 26297Interlocked.Increment(ref FireCount15); 26301Interlocked.Increment(ref FireCount16); 26305Interlocked.Increment(ref FireCount6); 26323Interlocked.Increment(ref FireCount7); 26336Interlocked.Increment(ref FireCount8); 26350Interlocked.Increment(ref FireCount9); 26372Interlocked.Increment(ref FireCount11); 26375Interlocked.Increment(ref FireCount12); 26378Interlocked.Increment(ref FireCount13); 26398Interlocked.Increment(ref FireCount18); 26402Interlocked.Increment(ref FireCount19); 26412Interlocked.Increment(ref FireCount24); 26416Interlocked.Increment(ref FireCount25); 26420Interlocked.Increment(ref FireCount26); 26436Interlocked.Increment(ref FireCount20); 26439Interlocked.Increment(ref FireCount21); 26442Interlocked.Increment(ref FireCount22); 26453Interlocked.Increment(ref FireCount23); 26477Interlocked.Increment(ref FireCount27); 26481Interlocked.Increment(ref FireCount28); 26485Interlocked.Increment(ref FireCount29); 26503Interlocked.Increment(ref FireCount30); 26507Interlocked.Increment(ref FireCount31); 26573Interlocked.Increment(ref FireCount1); 26576Interlocked.Increment(ref FireCount2); 26579Interlocked.Increment(ref FireCount3); 26582Interlocked.Increment(ref FireCount4); 26585Interlocked.Increment(ref FireCount5); 26588Interlocked.Increment(ref FireCount6); 26591Interlocked.Increment(ref FireCount7); 26668Interlocked.Increment(ref FireCount1); 26672Interlocked.Increment(ref FireCount2); 26676Interlocked.Increment(ref FireCount3); 26679Interlocked.Increment(ref FireCount4); 26683Interlocked.Increment(ref FireCount5); 26686Interlocked.Increment(ref FireCount9); 26696Interlocked.Increment(ref FireCount10); 26714Interlocked.Increment(ref FireCount6); 26720Interlocked.Increment(ref FireCount7); 26726Interlocked.Increment(ref FireCount8); 26732Interlocked.Increment(ref FireCount11); 26743Interlocked.Increment(ref FireCount12); 26835Interlocked.Increment(ref FireCount1); 26839Interlocked.Increment(ref FireCount2); 26843Interlocked.Increment(ref FireCount3); 26857Interlocked.Increment(ref FireCount4); 26872Interlocked.Increment(ref FireCount5); 26898Interlocked.Increment(ref FireCount6); 26902Interlocked.Increment(ref FireCount7); 26906Interlocked.Increment(ref FireCount8); 26910Interlocked.Increment(ref FireCount9); 26914Interlocked.Increment(ref FireCount10); 26918Interlocked.Increment(ref FireCount11); 26922Interlocked.Increment(ref FireCount12); 26926Interlocked.Increment(ref FireCount13); 26930Interlocked.Increment(ref FireCount17); 26944Interlocked.Increment(ref FireCount14); 26948Interlocked.Increment(ref FireCount15); 26952Interlocked.Increment(ref FireCount16); 27020Interlocked.Increment(ref FireCount1); 27031Interlocked.Increment(ref FireCount2); 27045Interlocked.Increment(ref FireCount3); 27061Interlocked.Increment(ref FireCount4); 27154Interlocked.Increment(ref FireCount100); 27167Interlocked.Increment(ref FireCount200); 27183Interlocked.Increment(ref FireCount300); 27201Interlocked.Increment(ref FireCount400); 27228Interlocked.Increment(ref FireCount1000); 27239Interlocked.Increment(ref FireCount2000); 27253Interlocked.Increment(ref FireCount3000); 27269Interlocked.Increment(ref FireCount4000); 27338Interlocked.Increment(ref FireCount1); 27349Interlocked.Increment(ref FireCount2); 27360Interlocked.Increment(ref FireCount3); 27371Interlocked.Increment(ref FireCount4); 27483Interlocked.Increment(ref FireCount100); 27494Interlocked.Increment(ref FireCount200); 27505Interlocked.Increment(ref FireCount300); 27516Interlocked.Increment(ref FireCount400); 27551Interlocked.Increment(ref FireCount1000); 27562Interlocked.Increment(ref FireCount2000); 27573Interlocked.Increment(ref FireCount3000); 27584Interlocked.Increment(ref FireCount4000); 27664Interlocked.Increment(ref FireCount1); 27667Interlocked.Increment(ref FireCount2); 27670Interlocked.Increment(ref FireCount3); 27673Interlocked.Increment(ref FireCount4); 27686Interlocked.Increment(ref FireCount5); 27689Interlocked.Increment(ref FireCount6); 27702Interlocked.Increment(ref FireCount7); 27705Interlocked.Increment(ref FireCount8); 27708Interlocked.Increment(ref FireCount9);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (97)
Semantics\RecordStructTests.cs (53)
5974Interlocked.Increment(ref FireCount0); 5978Interlocked.Increment(ref FireCount7); 5982Interlocked.Increment(ref FireCount12); 6000Interlocked.Increment(ref FireCount3); 6018Interlocked.Increment(ref FireCountThisConstructorInitializer); 6031Interlocked.Increment(ref FireCountConstructorDeclaration); 6048Interlocked.Increment(ref FireCountRecordStructDeclarationA); 6065Interlocked.Increment(ref FireCount5); 6081Interlocked.Increment(ref FireCountSimpleBaseTypeI1onA); 6105Interlocked.Increment(ref FireCountParameterListAPrimaryCtor); 6109Interlocked.Increment(ref FireCountStringParameterList); 6127Interlocked.Increment(ref FireCount11); 6194Interlocked.Increment(ref FireCount1); 6197Interlocked.Increment(ref FireCount2); 6200Interlocked.Increment(ref FireCount3); 6203Interlocked.Increment(ref FireCount4); 6206Interlocked.Increment(ref FireCount5); 6209Interlocked.Increment(ref FireCount6); 6212Interlocked.Increment(ref FireCount7); 6290Interlocked.Increment(ref FireCount1); 6294Interlocked.Increment(ref FireCount2); 6298Interlocked.Increment(ref FireCount3); 6301Interlocked.Increment(ref FireCount4); 6305Interlocked.Increment(ref FireCount5); 6308Interlocked.Increment(ref FireCount9); 6318Interlocked.Increment(ref FireCount10); 6336Interlocked.Increment(ref FireCount6); 6342Interlocked.Increment(ref FireCount7); 6348Interlocked.Increment(ref FireCount8); 6354Interlocked.Increment(ref FireCount11); 6365Interlocked.Increment(ref FireCount12); 6421Interlocked.Increment(ref FireCount1); 6443Interlocked.Increment(ref FireCount6); 6447Interlocked.Increment(ref FireCount7); 6461Interlocked.Increment(ref FireCount14); 6513Interlocked.Increment(ref FireCount1); 6575Interlocked.Increment(ref FireCount1); 6586Interlocked.Increment(ref FireCount4); 6667Interlocked.Increment(ref FireCount100); 6678Interlocked.Increment(ref FireCount400); 6689Interlocked.Increment(ref FireCount500); 6725Interlocked.Increment(ref FireCount1000); 6736Interlocked.Increment(ref FireCount4000); 6747Interlocked.Increment(ref FireCount5000); 6827Interlocked.Increment(ref FireCount1); 6830Interlocked.Increment(ref FireCount2); 6833Interlocked.Increment(ref FireCount3); 6836Interlocked.Increment(ref FireCount4); 6849Interlocked.Increment(ref FireCount5); 6852Interlocked.Increment(ref FireCount6); 6865Interlocked.Increment(ref FireCount7); 6868Interlocked.Increment(ref FireCount8); 6871Interlocked.Increment(ref FireCount9);
Semantics\TopLevelStatementsTests.cs (43)
6444Interlocked.Increment(ref FireCount1); 6447Interlocked.Increment(ref FireCount2); 6474Interlocked.Increment(ref FireCount3); 6477Interlocked.Increment(ref FireCount4); 6540Interlocked.Increment(ref FireCount1); 6543Interlocked.Increment(ref FireCount2); 6616Interlocked.Increment(ref FireCount1); 6620Interlocked.Increment(ref FireCount2); 6632Interlocked.Increment(ref FireCount3); 6640Interlocked.Increment(ref FireCount4); 6643Interlocked.Increment(ref FireCount5); 6655Interlocked.Increment(ref FireCount6); 6662Interlocked.Increment(ref FireCount7); 6669Interlocked.Increment(ref FireCount8); 6728Interlocked.Increment(ref FireCount1); 6731Interlocked.Increment(ref FireCount2); 6748Interlocked.Increment(ref FireCount3); 6751Interlocked.Increment(ref FireCount4); 6806Interlocked.Increment(ref FireCount1); 6809Interlocked.Increment(ref FireCount2); 6864Interlocked.Increment(ref FireCount1); 6867Interlocked.Increment(ref FireCount2); 6922Interlocked.Increment(ref FireCount1); 6925Interlocked.Increment(ref FireCount2); 6990Interlocked.Increment(ref FireCount1); 6993Interlocked.Increment(ref FireCount2); 7072Interlocked.Increment(ref FireCount1); 7077Interlocked.Increment(ref FireCount2); 7106Interlocked.Increment(ref FireCount3); 7186Interlocked.Increment(ref FireCount1); 7191Interlocked.Increment(ref FireCount2); 7196Interlocked.Increment(ref FireCount3); 7211Interlocked.Increment(ref FireCount4); 7276Interlocked.Increment(ref FireCount1); 7282Interlocked.Increment(ref FireCount2); 7291Interlocked.Increment(ref FireCount3); 7294Interlocked.Increment(ref FireCount4); 7346Interlocked.Increment(ref FireCount3); 7358Interlocked.Increment(ref FireCount1); 7361Interlocked.Increment(ref FireCount2); 7413Interlocked.Increment(ref FireCount3); 7426Interlocked.Increment(ref FireCount1); 7429Interlocked.Increment(ref FireCount2);
SourceGeneration\GeneratorDriverTests.cs (1)
193Interlocked.Increment(ref GeneratedClassCount);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\NullablePublicAPITests.cs (2)
1798Interlocked.Increment(ref HitCount); 4854Interlocked.Increment(ref HitCount);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
BlindAggregatorFactory.cs (1)
160=> unchecked((uint)Interlocked.Increment(ref pThis->_refCount));
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrModuleInstance.cs (1)
52Interlocked.Increment(ref _resolveTypeNameFailures);
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\DebuggingSession.cs (1)
487var updateId = new UpdateId(Id, Interlocked.Increment(ref _updateOrdinal));
EditAndContinue\SolutionSnapshotRegistry.cs (1)
41var id = new SolutionSnapshotId(Interlocked.Increment(ref s_solutionSnapshotId));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerProgressReporter.cs (1)
69if (start ? (Interlocked.Increment(ref referenceCount) == 1) : (Interlocked.Decrement(ref referenceCount) == 0))
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
95Interlocked.Increment(ref generatorInvocations);
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.cs (1)
190return new LazyRemoteService(this, options, Interlocked.Increment(ref _remoteServiceInstanceId), skipInitialization);
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LanguageServerProjectSystem.cs (2)
37/// The suffix to use for the binary log name; incremented each time we have a new build. Should be incremented with <see cref="Interlocked.Increment(ref int)"/>. 205var numericSuffix = Interlocked.Increment(ref _binaryLogNumericSuffix);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\DiagnosticsRefreshQueue.cs (1)
66Interlocked.Increment(ref _globalStateVersion);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
148if (Interlocked.Increment(ref s_dumpsSubmitted) <= 3)
Microsoft.CodeAnalysis.Scripting (2)
ScriptBuilder.cs (2)
64_assemblyNamePrefix = s_globalAssemblyNamePrefix + "#" + Interlocked.Increment(ref s_engineIdDispenser).ToString(); 70int id = Interlocked.Increment(ref _submissionIdDispenser);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\IRuntimeEnvironment.cs (1)
311Interlocked.Increment(ref s_dumpCount);
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1165var myToken = Interlocked.Increment(ref _token);
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\MetadataOrSourceAssemblySymbol.vb (1)
86Interlocked.Increment(_cachedSpecialTypes)
Symbols\PEOrSourceOrMergedNamespaceSymbol.vb (1)
94Dim cnt = Interlocked.Increment(Me._extQueryCnt)
Microsoft.CodeAnalysis.Workspaces (7)
Log\CorrelationIdFactory.cs (1)
14=> Interlocked.Increment(ref s_globalId);
Log\CountLogAggregator.cs (1)
53Interlocked.Increment(ref _count);
Log\RoslynEventSource.LogBlock.cs (1)
104=> Interlocked.Increment(ref s_lastUniqueBlockId);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
672return Interlocked.Increment(ref StringTable.s_sharedRandom);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (1)
154=> Interlocked.Increment(ref s_lastUniqueBlockId);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
459Interlocked.Increment(ref _completionRefCount);
Workspace\Solution\VersionStamp.cs (1)
187var globalVersion = Interlocked.Increment(ref VersionStamp.s_globalVersion);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Rpc\RpcClient.cs (1)
144requestId = Interlocked.Increment(ref _nextRequestId);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Rpc\RpcServer.cs (1)
49var nextIndex = Interlocked.Increment(ref _nextRpcTargetIndex);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
672return Interlocked.Increment(ref StringTable.s_sharedRandom);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\Core\MSBuild.BuildHost\Rpc\RpcServer.cs (1)
49var nextIndex = Interlocked.Increment(ref _nextRpcTargetIndex);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\AsyncLazyTests.cs (1)
232Interlocked.Increment(ref computations);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderEquivalence.cs (1)
41var count = Interlocked.Increment(ref cachedBinderCount);
Microsoft.Extensions.AsyncState (1)
AsyncState.cs (1)
49return new AsyncStateToken(Interlocked.Increment(ref _contextCount) - 1);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.Debug.cs (1)
46_ = Interlocked.Increment(ref _outstandingBufferCount);
Microsoft.Extensions.Caching.Hybrid.Tests (9)
RedisTests.cs (1)
77Interlocked.Increment(ref count);
StampedeTests.cs (8)
83using var reg = ct.Register(() => Interlocked.Increment(ref cancelCount)); 89Interlocked.Increment(ref executeCount); 119using var reg = ct.Register(() => Interlocked.Increment(ref cancelCount)); 125Interlocked.Increment(ref executeCount); 172using var reg = ct.Register(() => Interlocked.Increment(ref cancelCount)); 180Interlocked.Increment(ref executeCount); 250using var reg = ct.Register(() => Interlocked.Increment(ref cancelCount)); 258Interlocked.Increment(ref executeCount);
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactor.cs (1)
83var order = Interlocked.Increment(ref _redactedSoFar);
FakeRedactorProvider.cs (1)
37var order = Interlocked.Increment(ref _redactorsRequestedSoFar);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\DynamicServiceProviderEngine.cs (1)
30if (Interlocked.Increment(ref callCount) == 2)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Latency\Internal\HttpMockProvider.cs (1)
49Interlocked.Increment(ref OnEventInvoked);
Microsoft.Extensions.Logging.Abstractions (1)
FormattedLogValues.cs (1)
46Interlocked.Increment(ref s_count);
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
145Interlocked.Increment(ref _messagesDropped);
Microsoft.Extensions.Logging.EventSource (2)
EventSourceLogger.cs (1)
171int id = Interlocked.Increment(ref _activityIds);
EventSourceLoggerProvider.cs (1)
32_factoryID = Interlocked.Increment(ref _globalFactoryID);
Microsoft.Extensions.ObjectPool (1)
DefaultObjectPool.cs (1)
86if (Interlocked.Increment(ref _numItems) <= _maxCapacity)
Microsoft.Extensions.Telemetry (1)
Latency\Internal\CheckpointTracker.cs (1)
68var p = Interlocked.Increment(ref _numCheckpoints);
Microsoft.Maui (1)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
429 return Interlocked.Increment(ref _asyncInvokeTaskId);
Microsoft.Maui.Controls (5)
DataTemplate.cs (3)
20 _id = Interlocked.Increment(ref idCounter); 29 _id = Interlocked.Increment(ref idCounter); 36 _id = Interlocked.Increment(ref idCounter);
NavigationPage\NavigationPage.cs (1)
636 Interlocked.Increment(ref _waitingCount);
Shell\ShellNavigatingEventArgs.cs (1)
64 var currentCount = Interlocked.Increment(ref _deferralCount);
Microsoft.Maui.Controls.Compatibility (1)
iOS\VisualElementTracker.cs (1)
216 var updateTarget = Interlocked.Increment(ref _updateCount);
Microsoft.Maui.Controls.Foldable (1)
DualScreenInfo.cs (1)
103 ProcessHingeAngleSubscriberCount(Interlocked.Increment(ref subscriberCount));
Microsoft.ML.Core (2)
Data\ProgressReporter.cs (1)
147var newId = Interlocked.Increment(ref _maxSubId);
Utilities\ObjectPool.cs (1)
54Interlocked.Increment(ref _numCreated);
Microsoft.ML.Data (2)
DataLoadSave\Text\TextLoaderParser.cs (1)
1498if (Interlocked.Increment(ref _mismatchCount) == 1)
Prediction\Calibrator.cs (1)
1384_random = new System.Random(System.Threading.Interlocked.Increment(ref _randSeed) - 1);
Microsoft.ML.FastTree (1)
Utils\Timer.cs (1)
241Interlocked.Increment(ref _state.NumCalls[(int)_event]);
Microsoft.ML.Tests (1)
CachingTests.cs (1)
30get { Interlocked.Increment(ref AccessCount); return _features; }
Microsoft.ML.TimeSeries (3)
SequentialAnomalyDetectionTransformBase.cs (1)
408if (Interlocked.Increment(ref _parent.StateRefCount) > 1)
SequentialForecastingTransformBase.cs (1)
257if (Interlocked.Increment(ref _parent.StateRefCount) > 1)
SrCnnTransformBase.cs (1)
251if (Interlocked.Increment(ref _parent.StateRefCount) > 1)
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (2)
110Interlocked.Increment(ref created); 118Interlocked.Increment(ref completed);
Microsoft.VisualStudio.LanguageServices (4)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
405Interlocked.Increment(ref _analyzedProjectCount);
EditorConfigSettings\Common\SettingsSnapshotFactoryBase.cs (1)
35internal void NotifyOfUpdate() => Interlocked.Increment(ref _currentVersionNumber);
LanguageClient\VisualStudioLogHubLoggerFactory.cs (1)
42var logName = $"Roslyn.{serverTypeName}.{Interlocked.Increment(ref s_logHubSessionId)}";
Watson\FaultReporter.cs (1)
148if (Interlocked.Increment(ref s_dumpsSubmitted) <= 3)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Logging\VSCodeTelemetryLogger.cs (1)
114if (Interlocked.Increment(ref _dumpsSubmitted) <= 3)
PresentationCore (2)
System\Windows\Media\MediaContext.cs (1)
2025uint renderID = (uint)Interlocked.Increment(ref _contextRenderID);
System\Windows\Media\SafeMILHandleMemoryPressure.cs (1)
30Interlocked.Increment(ref _refCount);
PresentationFramework (5)
MS\Internal\Data\DataBindEngine.cs (1)
431if (Interlocked.Increment(ref _cleanupRequests) == 1)
MS\Internal\Utility\MonitorWrapper.cs (1)
23Interlocked.Increment(ref _enterCount);
System\Windows\Documents\WpfPayload.cs (1)
316int newWpfPayoutCount = Interlocked.Increment(ref _wpfPayloadCount);
System\Windows\FrameworkElementFactory.cs (1)
1149Interlocked.Increment(ref AutoGenChildNamePostfix);
System\Windows\StyleHelper.cs (1)
5338Interlocked.Increment(ref lastChildIndex);
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\ActivityLevel.cs (1)
53var current = Interlocked.Increment(ref _isActive);
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
216Interlocked.Increment(ref _operationCount);
Shared.Tests (1)
Pools\PoolTests.cs (1)
25SequenceNum = Interlocked.Increment(ref _fooSequenceNum);
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
170var newUrl = context.Request.Query["baseUrl"] + "/testHub?numRedirects=" + Interlocked.Increment(ref _numRedirects);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
202if (Interlocked.Increment(ref requestNumber) == 1)
System.Collections.Concurrent (2)
System\Collections\Concurrent\PartitionerStatic.cs (2)
643Interlocked.Increment(ref _activeCopiers); 897Interlocked.Increment(ref _activePartitionCount.Value);
System.Collections.Immutable (1)
System\Collections\Immutable\SecureObjectPool.cs (1)
33result = Interlocked.Increment(ref s_poolUserIdCounter);
System.ComponentModel.TypeConverter (3)
System\ComponentModel\TypeDescriptor.cs (3)
1287int ci = System.Threading.Interlocked.Increment(ref s_collisionIndex) - 1; 2380Interlocked.Increment(ref s_metadataVersion); 2446Interlocked.Increment(ref s_metadataVersion);
System.Composition.Hosting (1)
System\Composition\Hosting\Core\LifetimeContext.cs (1)
51return Interlocked.Increment(ref s_nextSharingId);
System.Data.Common (11)
System\Data\Common\DataAdapter.cs (1)
31internal readonly int _objectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\Common\DbConnectionStringBuilder.cs (1)
36internal readonly int _objectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataColumn.cs (1)
75private readonly int _objectID = Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataRelation.cs (1)
71private readonly int _objectID = Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataRelationCollection.cs (1)
30private readonly int _objectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataRow.cs (1)
40internal readonly int _objectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataSet.cs (1)
74private readonly int _objectID = Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataTable.cs (1)
159private readonly int _objectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataTableCollection.cs (1)
31private readonly int _objectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\DataView.cs (1)
95private readonly int _objectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\Selection.cs (1)
86private readonly int _objectID = Interlocked.Increment(ref s_objectTypeCount);
System.Data.Odbc (4)
Common\System\Data\ProviderBase\DbConnectionInternal.cs (1)
23int activateCount = Interlocked.Increment(ref _activateCount);
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
721Interlocked.Increment(ref _waitCount);
System\Data\Odbc\OdbcCommand.cs (1)
24internal readonly int ObjectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System\Data\Odbc\OdbcDataReader.cs (1)
48internal readonly int ObjectID = System.Threading.Interlocked.Increment(ref s_objectTypeCount);
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Activity.cs (1)
1329ret = AppendSuffix(Parent.Id, Interlocked.Increment(ref Parent._currentChildId).ToString(), '.');
System\Diagnostics\Metrics\InstrumentState.cs (1)
30ID = Interlocked.Increment(ref s_idCounter);
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
539Interlocked.Increment(ref _sharedSessionRefCount);
System.IO.Compression (1)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
167Interlocked.Increment(ref _asyncOperations);
System.Linq.Expressions (3)
System\Dynamic\Utils\DelegateHelpers.cs (1)
233int thunkIndex = Interlocked.Increment(ref s_ThunksCreated);
System\Linq\Expressions\Compiler\AssemblyGen.cs (1)
49int index = Interlocked.Increment(ref _index);
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
73int lambdaMethodIndex = Interlocked.Increment(ref s_lambdaMethodIndex);
System.Linq.Parallel (3)
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (1)
190Interlocked.Increment(ref _sharedEmptyCount.Value);
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
157Interlocked.Increment(ref _totalElementCount.Value);
System\Linq\Parallel\Utils\PLINQETWProvider.cs (1)
45return Interlocked.Increment(ref s_queryId);
System.Net.HttpListener (2)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (2)
310if ((_intCompleted & ~HighBit) == 0 && (Interlocked.Increment(ref _intCompleted) & ~HighBit) == 1) 489if ((_intCompleted & ~HighBit) == 0 && (Interlocked.Increment(ref _intCompleted) & ~HighBit) == 1)
System.Net.Mail (5)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (2)
310if ((_intCompleted & ~HighBit) == 0 && (Interlocked.Increment(ref _intCompleted) & ~HighBit) == 1) 489if ((_intCompleted & ~HighBit) == 0 && (Interlocked.Increment(ref _intCompleted) & ~HighBit) == 1)
System\Net\CloseableStream.cs (1)
22if (Interlocked.Increment(ref _closed) == 1)
System\Net\Mime\MimeMultiPart.cs (1)
238int b = Interlocked.Increment(ref s_boundary) - 1;
System\Net\Mime\MultiAsyncResult.cs (1)
38private void Increment() => Interlocked.Increment(ref _outstanding);
System.Net.Quic (2)
System\Net\Quic\QuicListener.cs (2)
184Interlocked.Increment(ref _pendingConnectionsCapacity); 333Interlocked.Increment(ref _pendingConnectionsCapacity);
System.Net.Requests (3)
src\libraries\Common\src\System\Net\LazyAsyncResult.cs (2)
310if ((_intCompleted & ~HighBit) == 0 && (Interlocked.Increment(ref _intCompleted) & ~HighBit) == 1) 489if ((_intCompleted & ~HighBit) == 0 && (Interlocked.Increment(ref _intCompleted) & ~HighBit) == 1)
System\Net\FileWebRequest.cs (1)
297if (Interlocked.Increment(ref _aborted) == 1)
System.Net.Security (1)
src\libraries\Common\src\System\Net\Security\SSPIHandleCache.cs (1)
28int index = Interlocked.Increment(ref s_current) & MaxCacheSize;
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
113int engineIndex = Math.Abs(Interlocked.Increment(ref s_allocateFromEngine) % s_engines.Length);
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
92if (Interlocked.Increment(ref _callNesting) > 1)
System.Net.WebSockets (2)
System\Net\WebSockets\AsyncMutex.cs (2)
152Interlocked.Increment(ref m._gate); 193int gate = Interlocked.Increment(ref _gate);
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\NameInfo.cs (1)
42this.identity = Interlocked.Increment(ref lastIdentity);
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelSpinWaiter.cs (1)
24int spinningThreadCount = Interlocked.Increment(ref _spinningThreadCount);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (1)
466Interlocked.Increment(ref _separated.numRequestedWorkers);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
888Interlocked.Increment(ref props.m_completionCountdown); 1171newId = Interlocked.Increment(ref s_taskIdCounter);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
365newId = Interlocked.Increment(ref s_taskSchedulerIdCounter);
src\libraries\System.Private.CoreLib\src\System\Threading\Win32ThreadPoolNativeOverlapped.cs (1)
70int dataIndex = Interlocked.Increment(ref s_dataCount) - 1;
System.Private.Xml (1)
System\Xml\Schema\XmlSchema.cs (1)
399_schemaId = Interlocked.Increment(ref s_globalIdCounter);
System.Private.Xml.Linq (1)
System\Xml\Linq\XHashtable.cs (1)
286newEntry = Interlocked.Increment(ref _numEntries);
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
223int nextId = Interlocked.Increment(ref _typeId);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\HandleCollector.cs (1)
57Interlocked.Increment(ref _handleCount);
System.Security.Cryptography (1)
System\Security\Cryptography\ConcurrencyBlock.cs (1)
14int count = Interlocked.Increment(ref block._count);
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (1)
374if (Interlocked.Increment(ref _serializationCount) == MinSerializationsSampleSize)
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
52string typenumString = ((uint)Interlocked.Increment(ref s_typeCount)).ToString();
System\Text\RegularExpressions\RegexLWCGCompiler.cs (1)
47uint regexNum = (uint)Interlocked.Increment(ref s_regexCount);
System.Threading.Tasks.Parallel (7)
System\Threading\Tasks\Parallel.cs (5)
220forkJoinContextID = Interlocked.Increment(ref s_forkJoinContextID); 270int myIndex = Interlocked.Increment(ref actionIndex); // = index to use + 1 290myIndex = Interlocked.Increment(ref actionIndex); 972forkJoinContextID = Interlocked.Increment(ref s_forkJoinContextID); 2539forkJoinContextID = Interlocked.Increment(ref s_forkJoinContextID);
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
571Interlocked.Increment(ref _completionRefCount);
System\Threading\Tasks\ParallelRangeManager.cs (1)
293int nInitialRange = (Interlocked.Increment(ref _nCurrentIndexRangeToAssign) - 1) % _indexRanges.Length;
System.Transactions.Local (6)
System\Transactions\Enlistment.cs (1)
211string.Create(CultureInfo.InvariantCulture, $"{InternalTransaction.InstanceIdentifier}{Interlocked.Increment(ref InternalTransaction._nextHash)}"),
System\Transactions\Transaction.cs (2)
269_cloneId = Interlocked.Increment(ref _internalTransaction._cloneCount); 283_cloneId = Interlocked.Increment(ref _internalTransaction._cloneCount);
System\Transactions\TransactionTable.cs (3)
63readerIndex = Interlocked.Increment(ref _readersIn); 103Interlocked.Increment(ref _readersOut); 620int currentIndex = Interlocked.Increment(ref _index);
System.Windows.Forms (1)
System\Windows\Forms\Screen.cs (1)
337Interlocked.Increment(ref s_desktopChangedCount);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
28public void AddRef() => Interlocked.Increment(ref _refCount);
UnitTests.Common (1)
TestTypes.cs (1)
293Interlocked.Increment(ref _operationCount);