Trait linux_futex::AsFutex

source ·
pub trait AsFutex<S> {
    fn as_futex(&self) -> &Futex<S>;
    fn as_pi_futex(&self) -> &PiFutex<S>;
}
Expand description

Use any AtomicU32 as Futex or 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.

Required Methods§

Implementations on Foreign Types§

Implementors§