Struct scc::ebr::Barrier[][src]

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.

Implementations

Creates a new Barrier.

Examples

use scc::ebr::Barrier;

let barrier = Barrier::new();

Reclaims an Arc.

Examples

use scc::ebr::{Arc, Barrier};

let arc: Arc<usize> = Arc::new(47);
let barrier = Barrier::new();
barrier.reclaim(arc);

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.