AdjustAffinity() public static method

public static AdjustAffinity ( int pid, ulong mask ) : void
pid int
mask ulong
return void
Exemplo n.º 1
0
        protected override Process BenchmarkStartProcess(string CommandLine)
        {
            Process BenchmarkHandle = base.BenchmarkStartProcess(CommandLine);

            if (AffinityMask != 0 && BenchmarkHandle != null)
            {
                CPUID.AdjustAffinity(BenchmarkHandle.Id, AffinityMask);
            }

            return(BenchmarkHandle);
        }
Exemplo n.º 2
0
        protected override Process _Start()
        {
            Process P = base._Start();

            if (AffinityMask != 0 && P != null)
            {
                CPUID.AdjustAffinity(P.Id, AffinityMask);
            }

            return(P);
        }