Trait vm_memory::AtomicInteger[][src]

pub unsafe trait AtomicInteger: Sync + Send {
    type V;
    fn new(v: Self::V) -> Self;
fn load(&self, order: Ordering) -> Self::V;
fn store(&self, val: Self::V, order: Ordering); }

Objects that implement this trait must consist exclusively of atomic types from std::sync::atomic, except for AtomicPtr<T> and AtomicBool.

Associated Types

type V[src]

The raw value type associated with the atomic integer (i.e. u16 for AtomicU16).

Loading content...

Required methods

fn new(v: Self::V) -> Self[src]

Create a new instance of Self.

fn load(&self, order: Ordering) -> Self::V[src]

Loads a value from the atomic integer.

fn store(&self, val: Self::V, order: Ordering)[src]

Stores a value into the atomic integer.

Loading content...

Implementations on Foreign Types

impl AtomicInteger for AtomicI8[src]

type V = i8

impl AtomicInteger for AtomicI16[src]

type V = i16

impl AtomicInteger for AtomicI32[src]

type V = i32

impl AtomicInteger for AtomicI64[src]

type V = i64

impl AtomicInteger for AtomicU8[src]

type V = u8

impl AtomicInteger for AtomicU16[src]

type V = u16

impl AtomicInteger for AtomicU32[src]

type V = u32

impl AtomicInteger for AtomicU64[src]

type V = u64

impl AtomicInteger for AtomicIsize[src]

type V = isize

impl AtomicInteger for AtomicUsize[src]

type V = usize

Loading content...

Implementors

Loading content...