rust/library/std/src/sys_common
Dylan DPC dcf972a2be
Rollup merge of #77619 - fusion-engineering-forks:wasm-parker, r=dtolnay
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-16 02:10:11 +02:00
..
bytestring std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
condvar Make it possible to have unboxed mutexes on specific platforms. 2020-10-02 09:47:08 +02:00
net std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
remutex std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
thread_local_key std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
thread_parker Use futex-based thread-parker for Wasm32. 2020-10-06 20:02:02 +02:00
wtf8 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
alloc.rs library/std/sys_common: Define MIN_ALIGN for sparc-unknown-linux-gnu 2020-09-28 00:39:57 +02:00
at_exit_imp.rs Split sys_common::Mutex in StaticMutex and MovableMutex. 2020-09-27 10:05:56 +02:00
backtrace.rs Prevent __rust_begin_short_backtrace frames from being tail-call optimised away 2020-08-07 19:31:25 +01:00
bytestring.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
condvar.rs Make it possible to have unboxed condvars on specific platforms. 2020-10-02 09:47:08 +02:00
fs.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
io.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
mod.rs Move thread parker to sys_common. 2020-09-27 12:28:58 +02:00
mutex.rs Remove unnecessary rustc_const_stable attributes. 2020-10-08 22:29:13 +02:00
net.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
os_str_bytes.rs Capitalize safety comments 2020-09-08 22:26:44 -04:00
poison.rs Move to Arc::clone(&x) over x.clone() in library/std 2020-08-30 21:59:43 +02:00
process.rs Add accessors to Command. 2020-09-26 18:58:38 -07:00
remutex.rs Remove workaround for deref issue that no longer exists. 2020-09-24 20:50:09 +02:00
rwlock.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
tests.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
thread_info.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
thread_local_dtor.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
thread_local_key.rs Split sys_common::Mutex in StaticMutex and MovableMutex. 2020-09-27 10:05:56 +02:00
thread.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
util.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
wtf8.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00