pub struct SafePtr<T>(/* private fields */);
Expand description
A thread-safe wrapper for raw pointers used in parallel operations.
§Safety
This wrapper is only safe when used with NUMA-aware thread pools where each thread accesses different memory locations (different NUMA nodes).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SafePtr<T>
impl<T> RefUnwindSafe for SafePtr<T>where
T: RefUnwindSafe,
impl<T> Unpin for SafePtr<T>
impl<T> UnwindSafe for SafePtr<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more