36 references to ProcessPriorityClass
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (4)
440
private void UpdatePriority(Process p,
ProcessPriorityClass
priority)
462
ProcessPriorityClass
priority = parameters.LowPriority ?
ProcessPriorityClass
.BelowNormal :
ProcessPriorityClass
.Normal;
BackEnd\Node\OutOfProcNode.cs (6)
850
ProcessPriorityClass
priorityClass = Process.GetCurrentProcess().PriorityClass;
851
if (priorityClass !=
ProcessPriorityClass
.Normal && priorityClass !=
ProcessPriorityClass
.BelowNormal)
858
bool lowPriority = priorityClass ==
ProcessPriorityClass
.BelowNormal;
863
Process.GetCurrentProcess().PriorityClass = lowPriority ?
ProcessPriorityClass
.Normal :
ProcessPriorityClass
.BelowNormal;
Microsoft.Build.CommandLine.UnitTests (3)
XMake_Tests.cs (3)
1534
RunPriorityBuildTest(expectedPrority:
ProcessPriorityClass
.BelowNormal, arguments: "/low");
1545
ProcessPriorityClass
currentPriority = Process.GetCurrentProcess().PriorityClass;
1549
private void RunPriorityBuildTest(
ProcessPriorityClass
expectedPrority, params string[] arguments)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\ProcessExtensions.cs (1)
15
public static bool TrySetPriorityClass(this Process process,
ProcessPriorityClass
priorityClass)
Services\BrokeredServiceBase.cs (1)
42
Process.GetCurrentProcess().TrySetPriorityClass(
ProcessPriorityClass
.BelowNormal);
MSBuild (2)
XMake.cs (2)
2558
if (lowPriority && Process.GetCurrentProcess().PriorityClass !=
ProcessPriorityClass
.Idle)
2560
Process.GetCurrentProcess().PriorityClass =
ProcessPriorityClass
.BelowNormal;
netstandard (1)
netstandard.cs (1)
668
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
ProcessPriorityClass
))]
RunTests (1)
ProcessRunner.cs (1)
164
process.PriorityClass =
ProcessPriorityClass
.BelowNormal;
System (1)
src\libraries\shims\System\ref\System.cs (1)
523
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
ProcessPriorityClass
))]
System.Diagnostics.Process (16)
System\Diagnostics\Process.cs (3)
46
private
ProcessPriorityClass
_priorityClass;
470
public
ProcessPriorityClass
PriorityClass
485
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
ProcessPriorityClass
));
System\Diagnostics\Process.Unix.cs (13)
258
private
ProcessPriorityClass
PriorityClassCore
274
pri < -15 ?
ProcessPriorityClass
.RealTime :
275
pri < -10 ?
ProcessPriorityClass
.High :
276
pri < -5 ?
ProcessPriorityClass
.AboveNormal :
277
pri == 0 ?
ProcessPriorityClass
.Normal :
278
pri <= 10 ?
ProcessPriorityClass
.BelowNormal :
279
ProcessPriorityClass
.Idle;
288
case
ProcessPriorityClass
.RealTime: pri = -19; break;
289
case
ProcessPriorityClass
.High: pri = -11; break;
290
case
ProcessPriorityClass
.AboveNormal: pri = -6; break;
291
case
ProcessPriorityClass
.BelowNormal: pri = 10; break;
292
case
ProcessPriorityClass
.Idle: pri = 19; break;
294
Debug.Assert(value ==
ProcessPriorityClass
.Normal, "Input should have been validated by caller");