rust/library/std/src/sys/wasi
Manish Goregaokar 3fa0c087e4
Rollup merge of #105695 - joboet:remove_generic_parker, r=m-ou-se
Replace generic thread parker with explicit no-op parker

With #98391 merged, all platforms supporting threads now have their own parking implementations. Therefore, the generic implementation can be removed. On the remaining platforms (really just WASM without atomics), parking is not supported, so calls to `thread::park` now return instantly, which is [allowed by their API](https://doc.rust-lang.org/nightly/std/thread/fn.park.html). This is a change in behaviour, as spurious wakeups do not currently occur since all platforms guard against them. It is invalid to depend on this, but I'm still going to tag this as libs-api for confirmation.

````@rustbot```` label +T-libs +T-libs-api +A-atomic

r? rust-lang/libs
2023-05-03 16:42:48 -07:00
..
args.rs Auto merge of #84115 - CDirkx:rt, r=m-ou-se 2021-04-25 04:45:39 +00:00
env.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
fd.rs Inline AsRawFd implementations 2023-05-01 13:28:19 +02:00
fs.rs Inline AsRawFd implementations 2023-05-01 13:28:19 +02:00
io.rs Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
mod.rs Rollup merge of #105695 - joboet:remove_generic_parker, r=m-ou-se 2023-05-03 16:42:48 -07:00
net.rs Inline AsRawFd implementations 2023-05-01 13:28:19 +02:00
os.rs Allow wasi-libc to initialize its environment variables lazily. 2023-02-09 19:03:42 -08:00
stdio.rs Consolidate AsFd instances for stdio types into library/std/src/os/fd/owned.rs 2022-10-10 14:47:22 +01:00
thread.rs wasi: update to wasi 0.11.0 2022-01-28 13:27:29 +01:00
time.rs Error instead of panicking when setting file times if the passed SystemTime doesn't fit into the required type 2022-10-01 03:22:55 +01:00