kvarn::prelude::threading::atomic

Struct AtomicPtr

1.0.0 · source
#[repr(C, align(8))]
pub struct AtomicPtr<T> { /* private fields */ }
Available on target_has_atomic_load_store="ptr" only.
Expand description

A raw pointer type which can be safely shared between threads.

This type has the same size and bit validity as a *mut T.

Note: This type is only available on platforms that support atomic loads and stores of pointers. Its size depends on the target pointer’s size.

Implementations§