Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PriorityLevelCore

ThreadPriorityLevel System.Diagnostics.ProcessThread.PriorityLevelCore
getsetprivate

Definition at line 122 of file ProcessThread.cs.

123 {
124 get
125 {
127 int threadPriority = global::Interop.Kernel32.GetThreadPriority(handle);
128 if (threadPriority == int.MaxValue)
129 {
130 throw new Win32Exception();
131 }
132 return (ThreadPriorityLevel)threadPriority;
133 }
134 set
135 {
137 if (!global::Interop.Kernel32.SetThreadPriority(handle, (int)value))
138 {
139 throw new Win32Exception();
140 }
141 }
142 }
SafeThreadHandle OpenThreadHandle(int access)