Replies: 1 comment 2 replies
-
I'm having trouble reproducing, at least using node. Here is my complete program based on your code above:
Here is it running under node:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am learning multithreading with Emscripten and using the following compilation flags:
I encountered an issue when compiling the following code:
When using join(), the program behaves as expected: it prints
[work 1/2/3/4/5] Start
, waits for a while, then prints[work 16/7/8/9/10] Start
andTestThread End
. However, when I replace join() with detach(), the program prints[work 1/2/3/4/5] Start
, waits for a while, printsTestThread End
, and then no further output is shown. It seems that threads 6, 7, 8, 9, and 10 are not executing properly. Do I need to handle thread cleanup manually or adjust any compilation settings when using detach? Any help would be greatly appreciated!the version of Emscripten is 4.0.10.
Beta Was this translation helpful? Give feedback.
All reactions