kvarn::prelude::threading::atomic

Struct AtomicBool

1.0.0 · source
#[repr(C, align(1))]
pub struct AtomicBool { /* private fields */ }
Available on target_has_atomic_load_store="8" only.
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.

Implementations§