19 lines
307 B
Python
19 lines
307 B
Python
import threading
|
|
import logging
|
|
|
|
from .lifecyclemanager import manageLifecycle
|
|
|
|
def buildThread(module):
|
|
|
|
thread = threading.Thread(
|
|
target=manageLifecycle,
|
|
args=(module,),
|
|
name=module.name
|
|
)
|
|
|
|
thread.start()
|
|
|
|
logging.info("THREAD STARTED", thread)
|
|
|
|
return thread
|