wasi sdk has cmake files for vanilla, pthreads, p1, and p2. Is creating a p2-pthreads cmake file something that could work, (or p3 if that makes more sense)?
c# currently uses the p2 cmake file, but am trying to advance the idea of enabling threads in the c# runtime.
The component model doesn't support threads yet. That is waiting on the shared everything threads proposal.
Note that there is some work ongoing for that, and specs are moving (though of course this is all intended for post P3):
Some context that might be helpful:
https://github.com/WebAssembly/component-model/pull/447
https://github.com/WebAssembly/component-model/pull/451
Last updated: Apr 08 2025 at 23:03 UTC