1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 namespace System.Threading 6 { 7 internal partial class ClrThreadPool 8 { 9 private class CpuUtilizationReader 10 { 11 private Interop.Sys.ProcessCpuInformation _cpuInfo; 12 13 public int CurrentUtilization => Interop.Sys.GetCpuUtilization(ref _cpuInfo); // Updates cpuInfo as a side effect for the next call 14 } 15 } 16 } 17