pub trait AsFutex<S> { fn as_futex(&self) -> &Futex<S>; fn as_pi_futex(&self) -> &PiFutex<S>; }
Use any AtomicU32 as Futex or PiFutex.
AtomicU32
Futex
PiFutex
This also allows you to convert between a Futex and a PiFutex or between Private and Shared futexes if you ever need that, as they expose their internal AtomicU32 through .value.
Private
Shared
.value