// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Threading
{
internal sealed partial class PortableThreadPool
{
private static partial class WorkerThread
{
private static bool IsIOPending => false;
}
private struct CpuUtilizationReader
{
private Interop.Sys.ProcessCpuInformation _cpuInfo;
public double CurrentUtilization =>
Interop.Sys.GetCpuUtilization(ref _cpuInfo) / Environment.ProcessorCount;
}
}
}
|