diff options
| author | J. Ryan Stinnett <jryans@gmail.com> | 2020-11-11 22:25:48 +0000 |
|---|---|---|
| committer | J. Ryan Stinnett <jryans@gmail.com> | 2020-11-12 01:41:49 +0000 |
| commit | 951576051bafe03cd6ea36707e4ed8b25355fb58 (patch) | |
| tree | 97623f631d7ab7d34b9e91a44ff738b8f57335fa /compiler/rustc_codegen_llvm/src | |
| parent | e3051d8c24467b54c81da9d9ad70a3e82e106ec1 (diff) | |
| download | rust-951576051bafe03cd6ea36707e4ed8b25355fb58.tar.gz rust-951576051bafe03cd6ea36707e4ed8b25355fb58.zip | |
Update thread and futex APIs to work with Emscripten
This updates the thread and futex APIs in `std` to match the APIs exposed by Emscripten. This allows threads to run on `wasm32-unknown-emscripten` and the thread parker to compile without errors related to the missing `futex` module. To make use of this, Rust code must be compiled with `-C target-feature=atomics` and Emscripten must link with `-pthread`. I have confirmed this works well locally when building multithreaded crates. Attempting to enable `std` thread tests currently fails for seemingly obscure reasons and Emscripten is currently disabled in CI, so further work is needed to have proper test coverage here.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
