lua.wetgenes.tasks.add_global_thread
tasks:add_global_thread(thread)
This runs an add_thread inside a named thread so all threads are kept together no matter which thread tried to start it.
thread is the same as add_thread
if the thread id already exists then it will not be added again.