LuaJIT-Threads icon indicating copy to clipboard operation
LuaJIT-Threads copied to clipboard

Create thread callback on new thread's state

Open ColonelThirtyTwo opened this issue 12 years ago • 0 comments

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.

ColonelThirtyTwo avatar Sep 10 '13 16:09 ColonelThirtyTwo