Skip to main content

AtomicBool

Type Alias AtomicBool 

Source
pub type AtomicBool = Cell<bool>;
Available on non-crate feature sync only.
Expand description

A boolean type which can be safely shared between threads when “sync” feature is enabled.
A boolean type with non-threadsafe interior mutability when “sync” feature is not enabled.

This type has the same in-memory representation as a bool.

Aliased Type§

pub struct AtomicBool { /* private fields */ }