Lines Matching refs:impl

503     weakref_impl* const impl = static_cast<weakref_impl*>(this);  in incWeak()  local
504 impl->addWeakRef(id); in incWeak()
505 const int32_t c __unused = impl->mWeak.fetch_add(1, in incWeak()
513 weakref_impl* const impl = static_cast<weakref_impl*>(this); in decWeak() local
514 impl->removeWeakRef(id); in decWeak()
515 const int32_t c = impl->mWeak.fetch_sub(1, std::memory_order_release); in decWeak()
521 int32_t flags = impl->mFlags.load(std::memory_order_relaxed); in decWeak()
527 if (impl->mStrong.load(std::memory_order_relaxed) in decWeak()
537 "before it had a strong reference", impl->mBase); in decWeak()
540 delete impl; in decWeak()
545 impl->mBase->onLastWeakRef(id); in decWeak()
546 delete impl->mBase; in decWeak()
554 weakref_impl* const impl = static_cast<weakref_impl*>(this); in attemptIncStrong() local
555 int32_t curCount = impl->mStrong.load(std::memory_order_relaxed); in attemptIncStrong()
563 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
575 int32_t flags = impl->mFlags.load(std::memory_order_relaxed); in attemptIncStrong()
590 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
609 if (!impl->mBase->onIncStrongAttempted(FIRST_INC_STRONG, id)) { in attemptIncStrong()
616 curCount = impl->mStrong.fetch_add(1, std::memory_order_relaxed); in attemptIncStrong()
623 impl->mBase->onLastStrongRef(id); in attemptIncStrong()
628 impl->addStrongRef(id); in attemptIncStrong()
642 impl->mStrong.fetch_sub(INITIAL_STRONG_VALUE, in attemptIncStrong()
651 weakref_impl* const impl = static_cast<weakref_impl*>(this); in attemptIncWeak() local
653 int32_t curCount = impl->mWeak.load(std::memory_order_relaxed); in attemptIncWeak()
657 if (impl->mWeak.compare_exchange_weak(curCount, curCount+1, in attemptIncWeak()
665 impl->addWeakRef(id); in attemptIncWeak()
769 weakref_impl* const impl = static_cast<weakref_impl*>(ref); in renameRefId() local
770 impl->renameStrongRefId(old_id, new_id); in renameRefId()
771 impl->renameWeakRefId(old_id, new_id); in renameRefId()