29 references to counts
System.Private.CoreLib (29)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.Blocking.cs (6)
15
return Math.Min(_separated.
counts
.NumThreadsGoal, TargetThreadsGoalForBlockingAdjustment);
47
_separated.
counts
.NumThreadsGoal < TargetThreadsGoalForBlockingAdjustment)
82
_separated.
counts
.NumThreadsGoal > TargetThreadsGoalForBlockingAdjustment)
129
ThreadCounts counts = _separated.
counts
;
149
_separated.
counts
.InterlockedSetNumThreadsGoal(numThreadsGoal);
229
counts = _separated.
counts
.InterlockedSetNumThreadsGoal(newNumThreadsGoal);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (10)
165
_separated.
counts
.NumThreadsGoal = _minThreads;
223
else if (_separated.
counts
.NumThreadsGoal < newMinThreads)
225
_separated.
counts
.InterlockedSetNumThreadsGoal(newMinThreads);
297
if (_separated.
counts
.NumThreadsGoal > newMaxThreads)
299
_separated.
counts
.InterlockedSetNumThreadsGoal(newMaxThreads);
326
ThreadCounts counts = _separated.
counts
.VolatileRead();
331
public int ThreadCount => _separated.
counts
.VolatileRead().NumExistingThreads;
390
ThreadCounts counts = _separated.
counts
;
412
_separated.
counts
.InterlockedSetNumThreadsGoal((short)newNumThreadsGoal);
469
ThreadCounts counts = _separated.
counts
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (3)
151
ThreadCounts counts = threadPoolInstance._separated.
counts
;
166
threadPoolInstance._separated.
counts
.InterlockedCompareExchange(newCounts, counts);
219
minimumDelay = (uint)threadPoolInstance._separated.
counts
.NumThreadsGoal * DequeueDelayThresholdMs;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (10)
49
(uint)ThreadPoolInstance._separated.
counts
.VolatileRead().NumExistingThreads);
73
(uint)threadPoolInstance._separated.
counts
.VolatileRead().NumExistingThreads);
190
ThreadCounts counts = threadPoolInstance._separated.
counts
;
211
threadPoolInstance._separated.
counts
.InterlockedCompareExchange(newCounts, counts);
244
ThreadCounts oldCounts = threadPoolInstance._separated.
counts
;
247
if (threadPoolInstance._separated.
counts
.InterlockedCompareExchange(newCounts, oldCounts) == oldCounts)
268
oldCounts = threadPoolInstance._separated.
counts
;
272
if (threadPoolInstance._separated.
counts
.InterlockedCompareExchange(newCounts, oldCounts) == oldCounts)
306
ThreadCounts counts = threadPoolInstance._separated.
counts
;
321
ThreadCounts oldCounts = threadPoolInstance._separated.
counts
.InterlockedCompareExchange(newCounts, counts);