20 references to ThreadPriorityLevel
netstandard (1)
netstandard.cs (1)
699
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
ThreadPriorityLevel
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
537
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
ThreadPriorityLevel
))]
System.Diagnostics.Process (18)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetSetPriority.cs (15)
38
internal static System.Diagnostics.
ThreadPriorityLevel
GetThreadPriorityFromNiceValue(int nice)
42
(nice < -15) ?
ThreadPriorityLevel
.TimeCritical :
43
(nice < -10) ?
ThreadPriorityLevel
.Highest :
44
(nice < -5) ?
ThreadPriorityLevel
.AboveNormal :
45
(nice == 0) ?
ThreadPriorityLevel
.Normal :
46
(nice <= 5) ?
ThreadPriorityLevel
.BelowNormal :
47
(nice <= 10) ?
ThreadPriorityLevel
.Lowest :
48
ThreadPriorityLevel
.Idle;
51
internal static int GetNiceValueFromThreadPriority(System.Diagnostics.
ThreadPriorityLevel
priority)
53
return (priority ==
ThreadPriorityLevel
.TimeCritical ? -20 :
54
priority ==
ThreadPriorityLevel
.Highest ? -15 :
55
priority ==
ThreadPriorityLevel
.AboveNormal ? -10 :
56
priority ==
ThreadPriorityLevel
.Normal ? 0 :
57
priority ==
ThreadPriorityLevel
.BelowNormal ? 5 :
58
priority ==
ThreadPriorityLevel
.Lowest ? 10 :
System\Diagnostics\ProcessThread.cs (2)
23
private
ThreadPriorityLevel
? _priorityLevel;
89
public
ThreadPriorityLevel
PriorityLevel
System\Diagnostics\ProcessThread.Linux.cs (1)
17
private
ThreadPriorityLevel
PriorityLevelCore