Multithreading 8/N: Add support to calling OpenAL from pthreads#5533
Multithreading 8/N: Add support to calling OpenAL from pthreads#5533juj merged 1 commit intoemscripten-core:incomingfrom
Conversation
|
This will need #5531 to land first. |
|
Interesting. Is there a way to detect which thread a request has been proxied from? If so, I could use that to implement |
Actually, yes! That kind of mechanism will be introduced in a couple of PRs later, where it is needed for other purposes as well. JS code will be able to detect if they are currently processing a proxied call on behalf of another thread, and get the thread pointer of the thread they are performing the call for. |
824402f to
f4e5178
Compare
|
lgtm for this and the SDL one, can we add a pthreads test? |
Yeah, I'll mark that down as a followup, since I'm juggling some 20 branches here at the moment. |
f4e5178 to
dafb738
Compare
Similar to #5532, this extends OpenAL API to be coherently visible in all running threads.
We may want to defer landing this until I have had time to address #5367, since these will overlap. Redoing this PR is quite easy, so can layer this on top of #5367 after it is taken care of.