Trait parking_lot::elision::AtomicElisionExt

source ·
pub trait AtomicElisionExt {
    type IntType;

    // Required methods
    fn elision_compare_exchange_acquire(
        &self,
        current: Self::IntType,
        new: Self::IntType,
    ) -> Result<Self::IntType, Self::IntType>;
    fn elision_fetch_sub_release(&self, val: Self::IntType) -> Self::IntType;
}

Required Associated Types§

Required Methods§

source

fn elision_compare_exchange_acquire( &self, current: Self::IntType, new: Self::IntType, ) -> Result<Self::IntType, Self::IntType>

source

fn elision_fetch_sub_release(&self, val: Self::IntType) -> Self::IntType

Implementations on Foreign Types§

source§

impl AtomicElisionExt for AtomicUsize

Implementors§