Skip to content

Make _emscripten_run_callback_on_thread asynchronous - #22443

Merged
sbc100 merged 2 commits into
emscripten-core:mainfrom
stbergmann:fix-22442
Nov 6, 2024
Merged

Make _emscripten_run_callback_on_thread asynchronous#22443
sbc100 merged 2 commits into
emscripten-core:mainfrom
stbergmann:fix-22442

Conversation

@stbergmann

Copy link
Copy Markdown
Contributor

...fixing a regression introduced in c41f659 "Remove use of legacy proxy API from library_html5.js. NFC (#20370)".

Fixes: #22442

...fixing a regression introduced in c41f659
"Remove use of legacy proxy API from library_html5.js. NFC (emscripten-core#20370)".

Fixes: emscripten-core#22442
stbergmann added a commit to allotropia/emscripten that referenced this pull request Sep 18, 2024
...fixing a regression introduced in c41f659
"Remove use of legacy proxy API from library_html5.js. NFC (emscripten-core#20370)".

Fixes: emscripten-core#22442

(cherry-picked from 17f1bb7 at
<emscripten-core#22443> "Make
_emscripten_run_callback_on_thread asynchronous")
@kripken

kripken commented Oct 3, 2024

Copy link
Copy Markdown
Member

@sbc100 this refers to your PR #20370 - has this issue already been resolved?

@sbc100

sbc100 commented Oct 3, 2024

Copy link
Copy Markdown
Collaborator

I'm not totally sure if this is the best solution. I still need to do more investigation into #22442

@sbc100

sbc100 commented Nov 6, 2024

Copy link
Copy Markdown
Collaborator

Looking at the old code it does look like it was using async dispatch, so this change LGTM.

@sbc100

sbc100 commented Nov 6, 2024

Copy link
Copy Markdown
Collaborator

Its a shame we can't avoid the dynamic allocation here ..

@sbc100
sbc100 merged commit 5f0643b into emscripten-core:main Nov 6, 2024
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.

Deadlock with -sPROXY_TO_PTHREAD and _emscripten_set_resize_callback_on_thread

3 participants