IAtomicRefCounted.rcLock

Returns whether the refCount >= 1. This increases the refCount by 1. rcLock should be used to keep weak reference and ensures that the resource is not disposed. The operation is atomic.

  1. bool rcLock()
    interface IAtomicRefCounted
    final
    bool
    rcLock
    ()
    out (res) { assert ((res && refCount >= 2) || (!res && !refCount), "inconsistent ref count for " ~ (cast(Object)this).classinfo.name); }
  2. bool rcLockShared()

Meta