Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Create thread callback on new thread's state #1

Open
ColonelThirtyTwo opened this issue Sep 10, 2013 · 0 comments
Open

Create thread callback on new thread's state #1

ColonelThirtyTwo opened this issue Sep 10, 2013 · 0 comments

Comments

@ColonelThirtyTwo
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant