RefCounted.rcLock

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.

interface RefCounted
rcLock
()
out (res) { assert ((res && refCount >= 2) || (!res && !refCount)); }

Meta