kvarn_async::prelude::compact_str::core::sync::atomic

Struct AtomicBool

1.6.0 · source
#[repr(C, align(1))]
pub struct AtomicBool { /* private fields */ }
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§

source§

impl AtomicBool

1.0.0 (const: 1.24.0) · source