2 instantiations of SafeThreadHandle
System (2)
compmod\system\codedom\compiler\Executor.cs (1)
159SafeThreadHandle threadSH = new SafeThreadHandle();
services\monitoring\system\diagnosticts\Process.cs (1)
1998SafeThreadHandle threadSH = new SafeThreadHandle();
21 references to SafeThreadHandle
System (21)
compmod\microsoft\win32\NativeMethods.cs (8)
177public static extern bool GetThreadTimes(SafeThreadHandle handle, out long creation, out long exit, out long kernel, out long user); 1237public static extern bool GetThreadPriorityBoost(SafeThreadHandle handle, out bool disabled); 1240public static extern bool SetThreadPriorityBoost(SafeThreadHandle handle, bool disabled); 1249public static extern SafeThreadHandle OpenThread(int access, bool inherit, int threadId); 1252public static extern bool SetThreadPriority(SafeThreadHandle handle, int priority); 1255public static extern int GetThreadPriority(SafeThreadHandle handle); 1258public static extern IntPtr SetThreadAffinityMask(SafeThreadHandle handle, HandleRef mask); 1261public static extern int SetThreadIdealProcessor(SafeThreadHandle handle, int processor);
compmod\system\codedom\compiler\Executor.cs (1)
159SafeThreadHandle threadSH = new SafeThreadHandle();
services\monitoring\system\diagnosticts\Process.cs (1)
1998SafeThreadHandle threadSH = new SafeThreadHandle();
services\monitoring\system\diagnosticts\ProcessManager.cs (2)
288public static SafeThreadHandle OpenThread(int threadId, int access) { 290SafeThreadHandle threadHandle = NativeMethods.OpenThread(access, false, threadId);
services\monitoring\system\diagnosticts\ProcessThread.cs (9)
116SafeThreadHandle threadHandle = null; 137SafeThreadHandle threadHandle = null; 154SafeThreadHandle threadHandle = null; 177SafeThreadHandle threadHandle = null; 196SafeThreadHandle threadHandle = null; 303private static void CloseThreadHandle(SafeThreadHandle handle) { 330SafeThreadHandle OpenThreadHandle(int access) { 357SafeThreadHandle threadHandle = null; 373SafeThreadHandle threadHandle = null;