rust/library/std/src/sys
bors 55794e4396 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.
2020-11-12 05:52:17 +00:00
..
cloudabi Convert a bunch of intra-doc links 2020-11-07 12:50:57 -08:00
hermit Rollup merge of #74979 - maekawatoshiki:fix, r=Mark-Simulacrum 2020-11-07 01:01:59 +09:00
sgx Convert a bunch of intra-doc links 2020-11-07 12:50:57 -08:00
unix Auto merge of #78965 - jryans:emscripten-threads-libc, r=kennytm 2020-11-12 05:52:17 +00:00
unsupported Rollup merge of #77722 - fusion-engineering-forks:safe-unsupported-locks, r=Mark-Simulacrum 2020-10-14 06:02:21 +09:00
vxworks Take some of sys/vxworks/process/* from sys/unix instead. 2020-10-16 06:22:05 +02:00
wasi Rollup merge of #77722 - fusion-engineering-forks:safe-unsupported-locks, r=Mark-Simulacrum 2020-10-14 06:02:21 +09:00
wasm Remove unnecessary unsafe block from condvar_atomics & mutex_atomics 2020-10-24 18:22:18 +09:00
windows Auto merge of #77727 - thomcc:mach-info-order, r=Amanieu 2020-10-11 14:06:04 +00:00
mod.rs add hermit to the list of omit OS 2020-10-11 11:56:09 +02:00