Files
ThreadPilot/Platforms/Windows/IProcessCpuSetHandler.cs
T
PrimeBuild-pc c8826547e2 bug fix v1.7.3
2026-08-26 23:38:13 +02:00

27 lines
773 B
C#

namespace ThreadPilot.Platforms.Windows
{
using System;
using ThreadPilot.Models;
public interface IProcessCpuSetHandler : IDisposable
{
uint ProcessId { get; }
string ExecutableName { get; }
bool ApplyCpuSetMask(long affinityMask, bool clearMask = false);
CpuSetApplyResult ApplyCpuSetMaskDetailed(long affinityMask, bool clearMask = false);
bool ApplyCpuSelection(CpuSelection? selection, bool clearSelection = false);
CpuSetApplyResult ApplyCpuSelectionDetailed(CpuSelection? selection, bool clearSelection = false);
IReadOnlyList<int>? GetDefaultCpuSetLogicalProcessorIndexes() => null;
double GetAverageCpuUsage();
bool IsValid { get; }
}
}