[][src]Trait linux_futex::AsFutex

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

Use any AtomicI32 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 AtomicI32 through .value.

Required methods

fn as_futex(&self) -> &Futex<S>

fn as_pi_futex(&self) -> &PiFutex<S>

Loading content...

Implementations on Foreign Types

impl<S> AsFutex<S> for AtomicI32[src]

Loading content...

Implementors

Loading content...