We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03c9ee7 commit 7481de0Copy full SHA for 7481de0
1 file changed
src/lib/libwasm_worker.js
@@ -65,10 +65,10 @@ addToLibrary({
65
#if PTHREADS
66
// When the build contains both pthreads and Wasm Workers, offset the
67
// Wasm Worker ID space to avoid collisions with pthread TIDs (which start
68
- // at 42). We use `1 << 30` since it's ~1/2 way through `pid_t` space,
+ // at 42). We use `1 << 21` since it's ~1/2 way through `pid_t` space,
69
// essentially giving pthreads the first 1/2 of the range and wasm workers the
70
// second half.
71
- $_wasmWorkersID: {{{ 1 << 30 }}},
+ $_wasmWorkersID: {{{ 1 << 21 }}},
72
#else
73
$_wasmWorkersID: 1,
74
#endif
0 commit comments