Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme - concurrency. #5

Closed
andrewchambers opened this issue Feb 23, 2015 · 2 comments
Closed

Readme - concurrency. #5

andrewchambers opened this issue Feb 23, 2015 · 2 comments
Labels

Comments

@andrewchambers
Copy link

Could you write a readme heading describing how go routines interact with gopher-lua, and what is/isn't thread safe.

@yuin
Copy link
Owner

yuin commented Feb 23, 2015

In short, the LState is not goroutine-safe. I would recommend to use one LState per goroutine and communicate between goroutines by using channels.

BTW, I am planning to introduce some channel supports into the GopherLua.
I will write a readme about goroutines when the implementation is completed.

@andrewchambers
Copy link
Author

Thanks for the info.

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

No branches or pull requests

2 participants