Files
rust/library
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
..
2024-08-29 12:13:19 -07:00
2024-07-28 14:46:29 -04:00
2024-10-02 01:27:11 +08:00
2024-10-17 12:21:53 -07:00
2024-10-10 10:16:16 +00:00
2024-10-05 21:34:51 -05:00