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

Set cancellation debug hook asynchronously #78

Open
IUdalov opened this issue Sep 30, 2017 · 1 comment
Open

Set cancellation debug hook asynchronously #78

IUdalov opened this issue Sep 30, 2017 · 1 comment

Comments

@IUdalov
Copy link
Contributor

IUdalov commented Sep 30, 2017

lua_sethook looks async safe.
So all threads can be spawned without overhead.
We'd only need a lock to make sure that the state is not lua_close'd.

@mihacooper
Copy link
Member

The idea of this task is do not set hook when thread starts but do it only when the first invocation of thread:pause or thread:cancel occurs

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

No branches or pull requests

2 participants