Skip to main content

AtomicPtr

Type Alias AtomicPtr 

1.0.0 · Source
pub type AtomicPtr<T> = Atomic<*mut T>;
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.

Aliased Type§

#[repr(C)]
pub struct AtomicPtr<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> AtomicExt for AtomicPtr<T>

Source§

type Value = *mut T

Source§

fn with_mut<R, F>(&mut self, f: F) -> R
where F: FnOnce(&mut Self::Value) -> R,