6 references to ThreadCount
Microsoft.Extensions.ObjectPool.Microbenchmark (6)
DrainRefillMultiTheaded.cs (6)
33
_stores = new Foo[
ThreadCount
][];
34
for (int i = 0; i <
ThreadCount
; i++)
41
_tasks = new Task[
ThreadCount
- 1];
42
for (int i = 0; i <
ThreadCount
- 1; i++)
69
BenchmarkLoop(_stores[
ThreadCount
- 1]); // take the last slot
74
int num = (Count /
ThreadCount
) - 1;