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

Struct AtomicPtr

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