emscripten-core / emscripten-core/emscripten
Can emscripten_fiber_t only be accessed within one thread?
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Can `emscripten_fiber_t` only be accessed within one thread? I failed to migrate a coroutine library (many to many model) to the webassembly platform using the emscripten fiber API.
In this coroutine library, each kernel thread (`std:: thread`) has the opportunity to switch to a user thread (based on `emscripten_fiber_t`) through the `emscripten_fiber_ swap` function.
Contributor guide
Assessment
This issue has not been assessed yet.