GetProcessorCount() private method

private GetProcessorCount ( ) : int
return int
Ejemplo n.º 1
0
 public static bool SetMinThreads(int workerThreads, int completionPortThreads)
 {
     ThreadPoolGlobals.tpWarmupCount = Math.Max(ThreadPoolGlobals.GetProcessorCount() * 2, workerThreads);
     return(SetMinThreadsNative(workerThreads, completionPortThreads));
 }