[][src]Type Definition gcmodule::ThreadedCc

type ThreadedCc<T> = RawCc<T, ThreadedObjectSpace>;

A multi-thread reference-counting pointer that integrates with cyclic garbage collection.

ThreadedCc is similar to Cc. It works with multi-thread but is significantly slower than Cc.

To construct a ThreadedCc, use ThreadedObjectSpace::create.

Methods

impl<T: ?Sized> ThreadedCc<T>[src]

pub fn borrow(&self) -> ThreadedCcRef<T>[src]

Immutably borrows the wrapped value.

The borrow lasts until the returned value exits scope.

Trait Implementations

impl<T: Send + Sync> Send for ThreadedCc<T>[src]

impl<T: Send + Sync> Sync for ThreadedCc<T>[src]

impl<T: Trace> Trace for ThreadedCc<T>[src]

impl Trace for ThreadedCc<dyn Trace>[src]

impl Trace for ThreadedCc<dyn Trace + Send>[src]

impl Trace for ThreadedCc<dyn Trace + Send + Sync>[src]