rust/library/std/src/sys
Paul Menage cf7ff15a0d 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, this
patch switches the primary futex state type from AtomicU32 to
futex::Atomic.  The futex::Atomic type should be usable as an atomic
value with underlying primitive type equal to futex::Primitive.

This allows supporting the futex API on systems where the underlying
kernel futex implementation requires more state than simply an
AtomicU32.

All in-tree futex implementations simply define {Atomic,Primitive}
directly as {AtomicU32,u32}.
2024-10-17 12:21:53 -07:00
..
alloc Rollup merge of #130549 - biabbas:riscv32_wrs_vxworks, r=nnethercote 2024-09-25 10:09:22 +02:00
anonymous_pipe Remove unneeded pub(crate) 2024-07-31 13:45:14 +00:00
os_str Use &raw in the standard library 2024-09-25 17:03:20 -07:00
pal Abstract the state type for futexes 2024-10-17 12:21:53 -07:00
path Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
personality Initial std library support for NuttX 2024-09-24 15:35:40 +08:00
random Initial std library support for NuttX 2024-09-24 15:35:40 +08:00
sync Abstract the state type for futexes 2024-10-17 12:21:53 -07:00
thread_local std: make thread::current available in all thread_local! destructors 2024-10-02 18:04:21 +02:00
backtrace.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
cmath.rs Add math functions for f16 and f128 2024-08-01 15:38:51 -04:00
exit_guard.rs Attempt to fix CI 2024-07-08 09:19:25 -05:00
mod.rs Revert Break into the debugger on panic (129019) 2024-09-25 17:53:57 +00:00