From e841caadcaeec05b6517cd9d3b0149e0c05f2519 Mon Sep 17 00:00:00 2001 From: Lyncoln Date: Mon, 26 Oct 2026 09:26:31 -0400 Subject: [PATCH] Commented out old code and reverted to using thread instead of thread_nativeid so for thread manipulation through lifecycles --- core/execution/createthread.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/execution/createthread.py b/core/execution/createthread.py index 64b1ee3..64162d2 100644 --- a/core/execution/createthread.py +++ b/core/execution/createthread.py @@ -3,13 +3,13 @@ from .lifecyclemanager import registerLifecycle from .lifecyclemanager import manageLifecycle threadlist = [] -threadnum = 0 +#threadnum = 0 def buildThread(module, lifecycles): - global threadnum - threadnum += 1 + #global threadnum + #threadnum += 1 - threadname = f"thread.{threadnum}" + #threadname = f"thread.{threadnum}" thread = threading.Thread( target=manageLifecycle, @@ -20,7 +20,7 @@ def buildThread(module, lifecycles): thread.start() registryname = thread.name - registryvalue = thread.native_id + registryvalue = thread lifecycles = registerLifecycle (module, lifecycles, registryname, registryvalue)