IMRefCounted is a public base class that can be used by any class that needs reference-counting semantics, similar to the IRefCounted class provided by the IBM Open Class library in the past. This version of IMRefCounted differs in two ways:
addRef,
removeRef, and count methods
can be called from multiple threads simultaneously
without causing data corruption. ![]()
Using Counted
Pointers
Using Reference
Counted Objects