[][src]Type Definition crossbeam_epoch::Atomic

type Atomic<T> = Atomic<Box<T>>;

An atomic pointer that can be safely shared between threads.

See Atomic for more details.

Methods

impl<T> Atomic<T>[src]

pub fn new(value: T) -> Self[src]

Allocates value on the heap and returns a new atomic pointer pointing to it.

Examples

use crossbeam_epoch::Atomic;

let a = Atomic::new(1234);

Trait Implementations

impl<T> From<T> for Atomic<T>[src]