2 writes to NumExistingThreads
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (2)
203short newNumExistingThreads = --newCounts.NumExistingThreads; 271newCounts.NumExistingThreads = Math.Max(newCounts.NumProcessingWork, newCounts.NumExistingThreads);
11 references to NumExistingThreads
System.Private.CoreLib (11)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.Blocking.cs (4)
164Math.Max(configuredMaxThreadsWithoutDelay, Math.Min(counts.NumExistingThreads, _maxThreads)); 183if (newNumThreadsGoal <= counts.NumExistingThreads || BlockingConfig.IgnoreMemoryUsage) 204counts.NumExistingThreads * (long)WorkerThread.EstimatedAdditionalStackUsagePerThreadBytes; 218counts.NumExistingThreads +
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (1)
331public int ThreadCount => _separated.counts.VolatileRead().NumExistingThreads;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (6)
49(uint)ThreadPoolInstance._separated.counts.VolatileRead().NumExistingThreads); 73(uint)threadPoolInstance._separated.counts.VolatileRead().NumExistingThreads); 196if (counts.NumExistingThreads <= counts.NumProcessingWork) 271newCounts.NumExistingThreads = Math.Max(newCounts.NumProcessingWork, newCounts.NumExistingThreads); 290int toCreate = newCounts.NumExistingThreads - oldCounts.NumExistingThreads;