AtI32

Trait AtI32 

Source
pub trait AtI32 {
    // Required methods
    fn cas(&self, current: i32, new: i32) -> Result<i32, i32>;
    fn l(&self) -> i32;
    fn s(&self, val: i32);
}

Required Methods§

Source

fn cas(&self, current: i32, new: i32) -> Result<i32, i32>

swap with Ordering::Relaxed

Source

fn l(&self) -> i32

load with Ordering::Relaxed

Source

fn s(&self, val: i32)

store with Ordering::Relaxed

Implementations on Foreign Types§

Source§

impl AtI32 for AtomicI32

Source§

fn cas(&self, current: i32, new: i32) -> Result<i32, i32>

Source§

fn l(&self) -> i32

Source§

fn s(&self, val: i32)

Implementors§