diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-11-29 04:23:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-29 04:23:21 +0100 |
| commit | 2eec51c27cae2df56fd5cb2085e60e18f7e68940 (patch) | |
| tree | c9279c107e8f1b5ddee59a7415082aea39970de1 /library/std/src/lib.rs | |
| parent | b1e56deadaf4b08cd591feaa1a1283348298427d (diff) | |
| parent | 2dc6ba27b5bbb4b5aca064d007b8305636422c5d (diff) | |
| download | rust-2eec51c27cae2df56fd5cb2085e60e18f7e68940.tar.gz rust-2eec51c27cae2df56fd5cb2085e60e18f7e68940.zip | |
Rollup merge of #116839 - joboet:xous_thread_parking, r=m-ou-se
Implement thread parking for xous This follows the pattern set by [the Windows parker](https://github.com/rust-lang/rust/blob/ddef56d5dfa18f169af9db912dc8e8343797eebb/library/std/src/sys/windows/thread_parking.rs) when it uses keyed events. An atomic variable is used to track the state and optimize the fast path, while notifications are send via the ticktime server to block and unblock the thread. ping `@xobs` `@rustbot` label +T-libs +A-atomic r? libs
Diffstat (limited to 'library/std/src/lib.rs')
| -rw-r--r-- | library/std/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index d06012c14dc..8dc5b07ce10 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -336,6 +336,7 @@ #![feature(portable_simd)] #![feature(prelude_2024)] #![feature(ptr_as_uninit)] +#![feature(ptr_from_ref)] #![feature(raw_os_nonzero)] #![feature(round_ties_even)] #![feature(slice_internals)] |
