You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just leave a question here, so maybe somebody knows the answer and can give me some feedback 😅
How can I enable multi-threading in emscripten? I did some superficial research on that, but I was not successful. So far I did not had the time to dig deeper in that.
However, I tried already different things described here:
linking with pthread (that is already done in this example)
defining a thread pool-size with -sPTHREAD_POOL_SIZE
compiling with -sPROXY_TO_PTHREAD
But in all cases the application get terminated with an exception while starting the thread. My understanding is that emscripten is now supporting posix threads, because there is now shared memory support in browsers. This example tries to start a thread when a button is pressed. The button is located inside the "Hello, world!" window, where a click on the button "Button" tries to create a new thread.
I mean for simple applications that is probably sufficient, but to have real threading support here would be really just awesome. However, I was not able to make this work. Any help will be very appreciated 😄
The text was updated successfully, but these errors were encountered:
I just leave a question here, so maybe somebody knows the answer and can give me some feedback 😅
How can I enable multi-threading in
emscripten
? I did some superficial research on that, but I was not successful. So far I did not had the time to dig deeper in that.However, I tried already different things described here:
pthread
(that is already done in this example)-sPTHREAD_POOL_SIZE
-sPROXY_TO_PTHREAD
But in all cases the application get terminated with an exception while starting the thread. My understanding is that
emscripten
is now supporting posix threads, because there is now shared memory support in browsers. This example tries to start a thread when a button is pressed. The button is located inside the "Hello, world!" window, where a click on the button "Button" tries to create a new thread.I mean for simple applications that is probably sufficient, but to have real threading support here would be really just awesome. However, I was not able to make this work. Any help will be very appreciated 😄
The text was updated successfully, but these errors were encountered: