about summary refs log tree commit diff
path: root/library/std/src/sys/wasm/mod.rs
AgeCommit message (Collapse)AuthorLines
2024-01-11std: begin moving platform support modules into `pal`joboet-81/+0
2023-02-16std: replace generic thread parker with explicit no-op parkerjoboet-0/+2
2022-12-14std: use a more efficient `Once` on platforms without threadsjoboet-0/+2
2022-11-06std: remove lock wrappers in `sys_common`joboet-3/+3
2022-09-19std: use `sync::RwLock` for internal staticsjoboet-1/+1
2022-07-27Fix futex module imports on wasm+atomicssandydoo-2/+4
2022-06-03Lazily allocate+initialize locks.Mara Bos-2/+2
2022-04-19Use futex locks on wasm+atomics.Mara Bos-9/+6
2022-03-22Move std::sys::{mutex, condvar, rwlock} to std::sys::locks.Mara Bos-9/+10
2021-07-03Move `os_str_bytes` to `sys::unix` and reuse it on other platforms.Christiaan Dirkx-2/+2
2021-05-07Rollup merge of #84655 - CDirkx:wasm, r=m-ou-seDylan DPC-5/+9
Cleanup of `wasm` Some more cleanup of `sys`, this time `wasm` - Reuse `unsupported::args` (functionally equivalent implementation, just an empty iterator). - Split out `atomics` implementation of `wasm::thread`, the non-`atomics` implementation is reused from `unsupported`. - Move all of the `atomics` code to a separate directory `wasm/atomics`. ````@rustbot```` label: +T-libs-impl r? ````@m-ou-se````
2021-04-30Auto merge of #84522 - CDirkx:cmath, r=yaahcbors-1/+1
Reuse `sys::unix::cmath` on other platforms Reuse `sys::unix::cmath` on all non-`windows` platforms. `unix` is chosen as the canonical location instead of `unsupported` or `common` because `unsupported` doesn't make sense semantically and `common` is reserved for code that is supported on all platforms. Also `unix` is already the home of some non-`windows` code that is technically not exclusive to `unix` like `unix::path`.
2021-04-28Reuse `unsupported::args` on `wasm`Christiaan Dirkx-0/+1
2021-04-28Move `wasm` atomics code to `wasm/atomics`Christiaan Dirkx-5/+5
2021-04-28Rework `wasm::thread` to `thread_atomics`Christiaan Dirkx-1/+4
2021-04-28Reuse `unix::cmath`Christiaan Dirkx-1/+1
2021-04-22Move most init to `sys::init`Christiaan Dirkx-2/+0
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