Struct stoppable_thread::SimpleAtomicBool [] [src]

pub struct SimpleAtomicBool(_);

An simplified std::sync::atomic::AtomicBool

Use a more intuitive interface and does not allow the Ordering to be specified (it's always Ordering::Relaxed)

Methods

impl SimpleAtomicBool

fn new(v: bool) -> SimpleAtomicBool

Create a new instance

fn get(&self) -> bool

Return the current value

fn set(&self, v: bool)

Set a new value