System.Threading.ThreadPoolGlobals.GetProcessorCount C# (CSharp) Method

GetProcessorCount() private method

private GetProcessorCount ( ) : int
return int
        internal static int GetProcessorCount()
        {
            return Environment.ProcessorCount;
        }
    }

Usage Example

コード例 #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));
 }
ThreadPoolGlobals