rust/library/std/src/sys/sync/condvar
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
..
futex.rs Abstract the state type for futexes 2024-10-17 12:21:53 -07:00
itron.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs std: replace LazyBox with OnceBox 2024-10-01 22:05:35 +02:00
no_threads.rs std: move Once implementations to sys 2024-03-12 15:41:06 +01:00
pthread.rs std: replace LazyBox with OnceBox 2024-10-01 22:05:35 +02:00
sgx.rs std: replace LazyBox with OnceBox 2024-10-01 22:05:35 +02:00
windows7.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
xous.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00