Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
PriorityLevelCore
ThreadPriorityLevel
System.Diagnostics.ProcessThread.PriorityLevelCore
get
set
private
Definition at line
122
of file
ProcessThread.cs
.
123
{
124
get
125
{
126
using
SafeThreadHandle
handle
=
OpenThreadHandle
(64);
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
{
136
using
SafeThreadHandle
handle
=
OpenThreadHandle
(32);
137
if
(!global::Interop.Kernel32.SetThreadPriority(
handle
, (
int
)
value
))
138
{
139
throw
new
Win32Exception
();
140
}
141
}
142
}
Microsoft.Win32.SafeHandles.SafeThreadHandle
Definition
SafeThreadHandle.cs:7
System.Diagnostics.ProcessThread.OpenThreadHandle
SafeThreadHandle OpenThreadHandle(int access)
Definition
ProcessThread.cs:200
Win32Exception
System.Diagnostics.ThreadPriorityLevel
ThreadPriorityLevel
Definition
ThreadPriorityLevel.cs:4
System.ExceptionArgument.value
@ value
System.ExceptionArgument.handle
@ handle
System
Diagnostics
ProcessThread
Generated by
1.10.0