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

Enable yielding from interrupts #287

Closed
zeux opened this issue Dec 11, 2021 Discussed in #208 · 1 comment · Fixed by #413
Closed

Enable yielding from interrupts #287

zeux opened this issue Dec 11, 2021 Discussed in #208 · 1 comment · Fixed by #413
Labels
enhancement New feature or request pr welcome Please contribute a pull request

Comments

@zeux
Copy link
Collaborator

zeux commented Dec 11, 2021

Discussed in #208

Originally posted by morgoth990 November 16, 2021
I'm trying to limit the execution time calling lua_yield() from the interrupt callback but seems to trigger an exception.
It's possible to yield from the interrupt callback or how can I achieve the same result?

We'll need to look at the patch I suggested internally to make sure it doesn't affect codegen on any compilers negatively as well as document what's allowed and what's not allowed from interrupts (that are somewhat akin to POSIX signals in that very few operations are interrupt-safe).

@zeux zeux added the enhancement New feature or request label Dec 11, 2021
@LoganDark
Copy link
Contributor

Pre-emptive multitasking in Luau is an interesting concept. Would love to see some more research into this.

@zeux zeux added the pr welcome Please contribute a pull request label Jan 20, 2022
@zeux zeux closed this as completed in #413 Mar 14, 2022
zeux pushed a commit that referenced this issue Mar 14, 2022
Co-authored-by: luca salmin <luca.salmin@studioevil.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr welcome Please contribute a pull request
Development

Successfully merging a pull request may close this issue.

2 participants