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

WASM main_executor improvements #517

Open
sean-parent opened this issue Feb 9, 2023 · 0 comments
Open

WASM main_executor improvements #517

sean-parent opened this issue Feb 9, 2023 · 0 comments

Comments

@sean-parent
Copy link
Member

From an external conversation:

A simpler solution using the new API (https://emscripten.org/docs/api_reference/proxying.h.html) would be to create a new em_proxying_queue then use emscripten_proxy_asyc to send work to the main thread with it. No need for the double indirection in your previous solution. The proxied work will be automatically executed whenever the main thread returns to the event loop, just like in your previous solution, but without any code running during cancellation points.

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

No branches or pull requests

1 participant