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

Add function to run thread in protected mode #563

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

erw7
Copy link
Contributor

@erw7 erw7 commented Sep 15, 2021

If an error occurs in the entry function of a thread, the main thread will also exit if the entry function is not running in protected mode. For software that incorporates luv, such as neovim, this behavior is fatal. This PR adds luv_set_thread so that the thread entry function can be executed in the custom function as well as the callback.

@squeek502 squeek502 requested a review from zhaozg September 15, 2021 20:58
@squeek502 squeek502 merged commit b2572ec into luvit:master Sep 16, 2021
@erw7 erw7 deleted the add-thred-func-in-protected-mode branch September 19, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants