diff options
| author | bors <bors@rust-lang.org> | 2020-11-12 05:52:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-12 05:52:17 +0000 |
| commit | 55794e43960ad3647e78ea5b0cb5ad0c5c0596a8 (patch) | |
| tree | 8f15452ce9172f3340c458c214eb9f70ff91e359 /compiler/rustc_codegen_llvm/src | |
| parent | 5a6a41e7847ff5f85a31b87431ce2af29c567f1d (diff) | |
| parent | bf3be09ee800de4ec98dfeea5088639e1c538813 (diff) | |
| download | rust-55794e43960ad3647e78ea5b0cb5ad0c5c0596a8.tar.gz rust-55794e43960ad3647e78ea5b0cb5ad0c5c0596a8.zip | |
Auto merge of #78965 - jryans:emscripten-threads-libc, r=kennytm
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
