Function concurrent::add_garbage_box
[−]
[src]
pub fn add_garbage_box<T>(ptr: *const T)
Add a heap-allocated Box<T>
as garbage.
This adds a Box<T>
represented by pointer ptr
to the to-be-destroyed garbage queue.
For more details, see add_garbage
, which this method is a specialization of.
Safety
This is unsafe as the pointer could be aliased or invalid. To satisfy invariants, the pointer
shall be a valid object, allocated through Box::new(x)
or alike, and shall only be used as
long as there are hazard protecting it.