Example #1
0
def startNewThread(target, args=(), kwargs={}, propogateClientId=True):
    thread = Thread(target=target, args=args, kwargs=kwargs)
    if propogateClientId:
        t = currentThread()
        try:
            thread.clientData = t.clientData
        except:
            thread.clientData = None
    thread.start()
    return thread