unsafe fn delay_drop<P: NonNullPtr + Send>(
pointer: NonNull<<P as NonNullPtr>::Target>,
)
Expand description
Delays the dropping of a NonNullPtr
after the RCU grace period.
This is internally needed for implementing Rcu
and RcuOption
because we cannot alias a Box
. Restoring P
and use RcuDrop
for it
can lead to multiple Box
es simultaneously pointing to the same
content.
ยงSafety
The pointer must be previously returned by into_raw
, will not be used
after the end of the current grace period, and will only be dropped once.