We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5d392 commit 9c87c73Copy full SHA for 9c87c73
src/BenchmarkDotNet/Extensions/ProcessExtensions.cs
@@ -27,10 +27,6 @@ public static class ProcessExtensions
27
28
public static void EnsureHighPriority(this Process process, ILogger logger)
29
{
30
- // Process.set_PriorityClass requires root on Unix
31
- if (!OsDetector.IsWindows())
32
- return;
33
-
34
try
35
36
process.PriorityClass = ProcessPriorityClass.High;
@@ -67,10 +63,6 @@ public static bool TrySetPriority(
67
63
if (logger == null)
68
64
throw new ArgumentNullException(nameof(logger));
69
65
70
71
72
- return false;
73
74
66
75
76
process.PriorityClass = priority;
0 commit comments