Skip to main content

AtomicBool

Type Alias AtomicBool 

1.0.0 · Source
pub(crate) type AtomicBool = Atomic<bool>;
Expand description

A boolean type which can be safely shared between threads.

This type has the same size, alignment, and bit validity as a bool.

Note: This type is only available on platforms that support atomic loads and stores of u8.

Aliased Type§

#[repr(C)]
pub(crate) struct AtomicBool { /* private fields */ }

Trait Implementations§

Source§

impl AtomicConsume for AtomicBool

Available on non-crossbeam_no_atomic only.
Source§

type Val = bool

Type returned by load_consume.
Source§

fn load_consume(&self) -> Self::Val

Loads a value from the atomic using a “consume” memory ordering. Read more