pub fn protect(ptr: usize, slot: usize) -> HazardGuardExpand description
Protect a pointer by publishing it in a hazard pointer slot.
Returns a HazardGuard that clears the slot when dropped. The caller
must keep the guard alive as long as the pointer is being accessed.
slot must be 0..SLOTS_PER_CPU-1 (per-CPU local slot index).