Atomically load the number of active references.
Atomically increment the reference count.
Atomically decrement the reference count and dispose if it reaches zero. The object is locked using its own mutex when dispose is called.
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. The operation is atomic.
A backend instance