Skip to main content

AtomicUsize

Type Alias AtomicUsize 

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

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

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

Aliased Type§

pub struct AtomicUsize { /* private fields */ }