3 ms·
The main thread is a little special on the Web since it can't block, which can cause issues (like pthread_create doesn't immediately create an available pthread
by azakai 4y ago
The main thread is a little special on the Web since it can't block, which can cause issues (like pthread_create doesn't immediately create an available pthread). There are workarounds for most of those issues (like pre-allocating a threadpool), and many applications work well, but sometimes not out of the box. See
https://emscripten.org/docs/porting/pthreads.html#special-considerations https://emscripten.org/docs/porting/pthreads.html#special-co...
- jjtheblunt 4y agothank you