Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5421a85

Browse files
committed
Remove usage of get_native_id
1 parent f0b74eb commit 5421a85

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/runtime/pythonengine.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,6 @@ public static void Exec(string code, IntPtr? globals = null, IntPtr? locals = nu
582582
/// <returns>The native thread ID.</returns>
583583
public static uint GetNativeThreadID()
584584
{
585-
if (Runtime.PyVersion >= new Version(3, 8))
586-
{
587-
dynamic threading = Py.Import("threading");
588-
return threading.get_native_id();
589-
}
590-
591585
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
592586
{
593587
return GetCurrentThreadId();

0 commit comments

Comments
 (0)