Get a copy of this RefCounted instance if the refCount >= 1. This increases the refCount by 1. This should only be used to keep weak reference and ensures that the resource is not disposed.
Decrement the reference count and dispose if it reaches zero.
Increment the reference count.
The number of active references
Dispose the underlying resource
A non-atomic reference counted resource. Objects implementing this interface should have exterior locking if used as shared.