I would have to change the way the lanesManager handles things, since it copies upvalues. THREAD, GLOBAL are already exposed as global vars on the system thread so on the user side you would only need to prevent upvalues from being copied. Perhaps use THREAD, GLOBAL inside the thread and the main thread that calls can use a different variable name.
I would have to change the way the lanesManager handles things, since it copies upvalues. THREAD, GLOBAL are already exposed as global vars on the system thread so on the user side you would only need to prevent upvalues from being copied. Perhaps use
THREAD, GLOBAL
inside the thread and the main thread that calls can use a different variable name.