aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/emscripten_threads.md
blob: bdf808e262886e34d1ae896d2b40d55874c93fd0 (plain)
1
2
3
4
5
6
## Emscripten (emcc) now supports threads

In addition to properly setting the compile and linker arguments, a new meson
builtin has been added to control the PTHREAD_POOL_SIZE option,
`-D<lang>_thread_count`, which may be set to any integer value greater than 0.
If it set to 0 then the PTHREAD_POOL_SIZE option will not be passed.