[−][src]Crate counting_pointer
counting-pointer
provides struct Sc
and Asc
.
They behave like std::rc::Rc
and std::sync::Arc
except for the followings.
Sc
andAsc
treats only strong reference but not weak reference for the performance.Sc
andAsc
takesGlobalAlloc
type as a template parameter.
Structs
Asc | A thread-safe strong reference-counting pointer. 'Asc' stands for 'Atomic Strong Counted.' |
Sc | A single-threaded strong reference-counting pointer. 'Sc' stands for 'Strong Counted.' |