GetProcessorCount() private method

private GetProcessorCount ( ) : int
return int
コード例 #1
0
ファイル: ThreadPool.cs プロジェクト: randomize/VimConfig
 public static bool SetMinThreads(int workerThreads, int completionPortThreads)
 {
     ThreadPoolGlobals.tpWarmupCount = Math.Max(ThreadPoolGlobals.GetProcessorCount() * 2, workerThreads);
     return(SetMinThreadsNative(workerThreads, completionPortThreads));
 }