Multithreading 7/N: Add support to calling SDL 1.x from pthreads#5532
Multithreading 7/N: Add support to calling SDL 1.x from pthreads#5532juj merged 1 commit intoemscripten-core:incomingfrom
Conversation
|
This depends on #5531 to land first. |
|
How about using a loop at the end of the file to add all these annotations, instead of manually? We do that for other repetitive things. |
|
Setting in a loop would remove the |
|
Fair enough, lgtm. |
Adds support for calling SDL API from pthreads by synchronously proxying to main thread. This makes pthreads "see" the JavaScript state of SDL held in the main browser thread, so that multiple threads all act like they have one coherent state of SDL data structures. That allows one thread to call
SDL_Init, and it will be in effect for all other threads as well.