emscripten-core / emscripten-core/emscripten

Can emscripten_fiber_t only be accessed within one thread?

Open
#22,269 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.