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

fix: prevent calling uv.run while already running. #739

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

truemedian
Copy link
Member

As documented, uv_run is NOT re-entrant and this
prevents this from happening by returning fail.

Each lua state has its own uv loop, so the only
way for this to happen is for uv.run to be called
from a libuv callback.

As documented, uv_run is NOT re-entrant and this
prevents this from happening by returning fail.

Each lua state has its own uv loop, so the only way
for this to happen is for uv.run to be called from
a libuv callback.
@zhaozg zhaozg merged commit 3ff02c8 into luvit:master Nov 21, 2024
14 checks passed
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