rust/library/std/src/sys/unsupported
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
..
locks std: remove lock wrappers in sys_common 2022-11-06 15:32:59 +01:00
alloc.rs cleanup code w/ pointers in std a little 2022-08-05 16:47:49 +04:00
args.rs Fix missing import in unsupported::args 2021-04-28 16:16:01 +02:00
common.rs Support #[unix_sigpipe = "inherit|sig_dfl|sig_ign"] on fn main() 2022-08-28 19:46:45 +02:00
env.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
fs.rs Address reviewer comments 2022-08-18 10:34:40 +01:00
io.rs More mem::take in library 2023-04-20 19:54:46 -07:00
mod.rs std: replace generic thread parker with explicit no-op parker 2023-02-16 15:06:45 +01:00
net.rs Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
once.rs std: optimize LazyLock size 2023-01-26 16:16:03 +01:00
os.rs Hide Repr details from io::Error, and rework io::Error::new_const. 2022-02-04 18:47:29 -08:00
pipe.rs Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
process.rs Implement blocking output 2022-12-11 10:21:40 +05:30
stdio.rs Make raw standard stream constructors const 2020-08-21 13:17:20 +02:00
thread.rs Rename std:🧵:available_onccurrency to std:🧵:available_parallelism 2021-09-28 14:59:33 +02:00
thread_local_dtor.rs sync thread_local key conditions exactly with what the macro uses 2022-10-13 14:09:08 +02:00
thread_local_key.rs std: optimize TLS on Windows 2022-10-08 20:19:21 +02:00
thread_parking.rs std: replace generic thread parker with explicit no-op parker 2023-02-16 15:06:45 +01:00
time.rs make Instant::{duration_since, elapsed, sub} saturating and remove workarounds 2022-02-13 01:04:55 +01:00