pub struct Barrier { /* fields omitted */ }
Expand description
Barrier
allows the user to read AtomicArc
and keeps the
underlying instance pinned to the thread.
Barrier
internally prevents the global epoch value from passing through the value
announced by the current thread, thus keeping reachable instances in the thread from being
garbage collected.
Creates a new Barrier
.
use scc::ebr::Barrier;
let barrier = Barrier::new();
Reclaims an Arc
.
use scc::ebr::{Arc, Barrier};
let arc: Arc<usize> = Arc::new(47);
let barrier = Barrier::new();
barrier.reclaim(arc);
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.