[−][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.