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)
38internal 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 : 48ThreadPriorityLevel.Idle; 51internal static int GetNiceValueFromThreadPriority(System.Diagnostics.ThreadPriorityLevel priority) 53return (priority == ThreadPriorityLevel.TimeCritical ? -20 : 54priority == ThreadPriorityLevel.Highest ? -15 : 55priority == ThreadPriorityLevel.AboveNormal ? -10 : 56priority == ThreadPriorityLevel.Normal ? 0 : 57priority == ThreadPriorityLevel.BelowNormal ? 5 : 58priority == ThreadPriorityLevel.Lowest ? 10 :
System\Diagnostics\ProcessThread.cs (2)
23private ThreadPriorityLevel? _priorityLevel; 89public ThreadPriorityLevel PriorityLevel
System\Diagnostics\ProcessThread.Linux.cs (1)
17private ThreadPriorityLevel PriorityLevelCore