Skip to main content

AtomicElisionExt

Trait 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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AtomicElisionExt for AtomicUsize

Available on not (crate feature hardware-lock-elision and non-miri and (x86 or x86-64)).

Implementors§