I am trying to implement lua in my existing multithreaded application. I heard that lua was not thread safe. I created different lua_State(s) for different threads.
Looking through the lua header files, I found lua_newthread . How would you implement this into an entire threaded application. Do you create one lua_State and create a separate lua_newthread(s) or will this lead to other problems?
user4175869
source share