kvarn::prelude::threading::atomic

Struct AtomicIsize

1.0.0 ยท source
#[repr(C, align(8))]
pub struct AtomicIsize { /* private fields */ }
Expand description

An integer type which can be safely shared between threads.

This type has the same size and bit validity as the underlying integer type, isize. However, the alignment of this type is always equal to its size, even on targets where isize has a lesser alignment.

For more about the differences between atomic types and non-atomic types as well as information about the portability of this type, please see the module-level documentation.