diff options
| author | bors <bors@rust-lang.org> | 2024-10-18 13:43:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-18 13:43:57 +0000 |
| commit | b0c2d2e5b00339014cba0a31f634af8c146458ed (patch) | |
| tree | 96daa53ade01532db1875d327410027d507a390b /tests/rustdoc/source-version-separator.rs | |
| parent | 1350eead10c46b9d3c2007fe0ea7892b7d7337ab (diff) | |
| parent | cf7ff15a0ddfe0713dd794cd39eb3b3b58ba8d27 (diff) | |
| download | rust-b0c2d2e5b00339014cba0a31f634af8c146458ed.tar.gz rust-b0c2d2e5b00339014cba0a31f634af8c146458ed.zip | |
Auto merge of #131841 - paulmenage:futex-abstraction, r=joboet
Abstract the state type for futexes
In the same way that we expose `SmallAtomic` and `SmallPrimitive` to allow Windows to use a value other than an `AtomicU32` for its futex state, switch the primary futex state type from `AtomicU32` to `futex::Futex`. The `futex::Futex` type should be usable as an atomic value with underlying primitive type equal to `futex::Primitive`. (`SmallAtomic` is also renamed to `SmallFutex`).
This allows supporting the futex API on systems where the underlying kernel futex implementation requires more user state than simply an `AtomicU32`.
All in-tree futex implementations simply define {`Futex`,`Primitive`} directly as {`AtomicU32`,`u32`}.
Diffstat (limited to 'tests/rustdoc/source-version-separator.rs')
0 files changed, 0 insertions, 0 deletions
