about summary refs log tree commit diff
path: root/library/std/src/sys/wasm/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-10-24`#[deny(unsafe_op_in_unsafe_fn)]` in sys/wasmchansuke-0/+2
2020-10-16Rollup merge of #77619 - fusion-engineering-forks:wasm-parker, r=dtolnayDylan DPC-0/+2
Use futex-based thread-parker for Wasm32. This uses the existing `sys_common/thread_parker/futex.rs` futex-based thread parker (that was already used for Linux) for wasm32 as well (if the wasm32 atomics target feature is enabled, which is not the case by default). Wasm32 provides the basic futex operations as instructions: https://webassembly.github.io/threads/syntax/instructions.html These are now exposed from `sys::futex::{futex_wait, futex_wake}`, just like on Linux. So, `thread_parker/futex.rs` stays completely unmodified.
2020-10-13Deny unsafe_op_in_unsafe_fn for unsupported/common.rs through sys/wasm too.Mara Bos-0/+1
2020-10-06Use futex-based thread-parker for Wasm32.Mara Bos-0/+2
2020-09-15Consolidate byte-identical modules.Eric Huss-1/+1
2020-07-27mv std libs to library/mark-0/+70