assert_store_ptr

Function assert_store_ptr 

Source
pub fn assert_store_ptr<T>(
    atomic: &AtomicPtr<T>,
    _old_val: *mut T,
    new_val: *mut T,
    _debug_order: Ordering,
    release_order: Ordering,
)
Expand description

atomic store with assertion on old_val equals to the one of atomic before storing new_val under debug mode.