LuaJIT-Threads
LuaJIT-Threads copied to clipboard
Create thread callback on new thread's state
http://www.freelists.org/post/luajit/How-to-create-another-lua-State-in-pthread,8
Basically, create the thread's main function in the child Lua state, casting it to a number to get it through the C API.