Commented out old code and reverted to using thread instead of thread_nativeid so for thread manipulation through lifecycles
This commit is contained in:
@@ -3,13 +3,13 @@ from .lifecyclemanager import registerLifecycle
|
|||||||
from .lifecyclemanager import manageLifecycle
|
from .lifecyclemanager import manageLifecycle
|
||||||
|
|
||||||
threadlist = []
|
threadlist = []
|
||||||
threadnum = 0
|
#threadnum = 0
|
||||||
|
|
||||||
def buildThread(module, lifecycles):
|
def buildThread(module, lifecycles):
|
||||||
global threadnum
|
#global threadnum
|
||||||
threadnum += 1
|
#threadnum += 1
|
||||||
|
|
||||||
threadname = f"thread.{threadnum}"
|
#threadname = f"thread.{threadnum}"
|
||||||
|
|
||||||
thread = threading.Thread(
|
thread = threading.Thread(
|
||||||
target=manageLifecycle,
|
target=manageLifecycle,
|
||||||
@@ -20,7 +20,7 @@ def buildThread(module, lifecycles):
|
|||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
registryname = thread.name
|
registryname = thread.name
|
||||||
registryvalue = thread.native_id
|
registryvalue = thread
|
||||||
|
|
||||||
lifecycles = registerLifecycle (module, lifecycles, registryname, registryvalue)
|
lifecycles = registerLifecycle (module, lifecycles, registryname, registryvalue)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user