rust/library/std/src
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
..
backtrace std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
collections Convert a bunch of intra-doc links 2020-11-07 12:50:57 -08:00
env std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
error std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f32 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f64 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
ffi Fix bootstrap doctest failure 2020-10-26 22:09:47 -04:00
fs Rollup merge of #78026 - sunfishcode:symlink-hard-link, r=dtolnay 2020-11-09 01:13:28 +01:00
io Rollup merge of #78811 - a1phyr:const_io_structs, r=dtolnay 2020-11-08 13:36:19 +01:00
lazy std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
memchr std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
net Rollup merge of #78208 - liketechnik:issue-69399, r=oli-obk 2020-10-25 18:43:40 +09:00
num std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
os Take sys/vxworks/{fd,fs,io} from sys/unix instead. 2020-10-16 06:19:00 +02:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
prelude Fix incorrect link in prelude 2020-09-02 17:38:21 -04:00
process std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
sync Convert a bunch of intra-doc links 2020-11-07 12:50:57 -08:00
sys Auto merge of #78965 - jryans:emscripten-threads-libc, r=kennytm 2020-11-12 05:52:17 +00:00
sys_common Rollup merge of #77648 - fusion-engineering-forks:static-mutex, r=dtolnay 2020-10-16 02:10:15 +02:00
thread Convert a bunch of intra-doc links 2020-11-07 12:50:57 -08:00
time Duration::zero() -> Duration::ZERO 2020-10-21 20:44:03 -07:00
alloc.rs Add missing newline to error message of the default OOM hook 2020-11-10 00:15:07 +08:00
ascii.rs Convert many files to intra-doc links 2020-09-02 17:37:40 -04:00
backtrace.rs For backtrace, use StaticMutex instead of a raw sys Mutex. 2020-10-07 13:59:03 +02:00
env.rs Improve docs for std::env::args() 2020-09-04 14:00:09 -07:00
error.rs Rename AllocErr to AllocError 2020-09-28 14:51:03 -04:00
f32.rs Rollup merge of #77099 - tspiteri:exp_m1-examples, r=m-ou-se 2020-10-31 09:49:32 +01:00
f64.rs Rollup merge of #77099 - tspiteri:exp_m1-examples, r=m-ou-se 2020-10-31 09:49:32 +01:00
fs.rs Make it platform-specific whether hard_link follows symlinks. 2020-10-21 01:46:27 -07:00
future.rs Fix stabilization marker for future_readiness_fns 2020-09-15 23:12:08 +02:00
keyword_docs.rs Clean up docs for 'as' keyword 2020-11-04 16:05:55 -08:00
lazy.rs Simplify SyncOnceCell's take and drop. 2020-09-12 14:00:38 +02:00
lib.rs Rollup merge of #78216 - workingjubilee:duration-zero, r=m-ou-se 2020-11-11 20:58:52 +01:00
macros.rs Use ? in core/std macros 2020-10-26 07:15:37 +09:00
memchr.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
num.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
panic.rs Add tracking issue number for panic_any. 2020-10-28 21:23:45 +01:00
panicking.rs Auto merge of #78227 - SergioBenitez:test-stdout-threading, r=m-ou-se 2020-10-27 11:43:18 +00:00
path.rs Clean up intra-doc links in std::path 2020-10-27 20:54:30 -07:00
primitive_docs.rs Rollup merge of #78757 - camelid:crate-link-text, r=jyn514 2020-11-05 10:30:02 +01:00
process.rs Apply suggestions from code review 2020-10-31 17:28:44 +01:00
rt.rs Prevent __rust_begin_short_backtrace frames from being tail-call optimised away 2020-08-07 19:31:25 +01:00
time.rs Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00