• Home
  • Raw
  • Download

Lines Matching refs:impl

471     weakref_impl* const impl = static_cast<weakref_impl*>(this);  in incWeak()  local
472 impl->addWeakRef(id); in incWeak()
473 const int32_t c __unused = impl->mWeak.fetch_add(1, in incWeak()
481 weakref_impl* const impl = static_cast<weakref_impl*>(this); in decWeak() local
482 impl->removeWeakRef(id); in decWeak()
483 const int32_t c = impl->mWeak.fetch_sub(1, std::memory_order_release); in decWeak()
488 int32_t flags = impl->mFlags.load(std::memory_order_relaxed); in decWeak()
494 if (impl->mStrong.load(std::memory_order_relaxed) in decWeak()
498 delete impl->mBase; in decWeak()
501 delete impl; in decWeak()
506 impl->mBase->onLastWeakRef(id); in decWeak()
507 delete impl->mBase; in decWeak()
515 weakref_impl* const impl = static_cast<weakref_impl*>(this); in attemptIncStrong() local
516 int32_t curCount = impl->mStrong.load(std::memory_order_relaxed); in attemptIncStrong()
524 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
536 int32_t flags = impl->mFlags.load(std::memory_order_relaxed); in attemptIncStrong()
551 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
570 if (!impl->mBase->onIncStrongAttempted(FIRST_INC_STRONG, id)) { in attemptIncStrong()
577 curCount = impl->mStrong.fetch_add(1, std::memory_order_relaxed); in attemptIncStrong()
584 impl->mBase->onLastStrongRef(id); in attemptIncStrong()
589 impl->addStrongRef(id); in attemptIncStrong()
603 impl->mStrong.fetch_sub(INITIAL_STRONG_VALUE, in attemptIncStrong()
612 weakref_impl* const impl = static_cast<weakref_impl*>(this); in attemptIncWeak() local
614 int32_t curCount = impl->mWeak.load(std::memory_order_relaxed); in attemptIncWeak()
618 if (impl->mWeak.compare_exchange_weak(curCount, curCount+1, in attemptIncWeak()
626 impl->addWeakRef(id); in attemptIncWeak()
726 weakref_impl* const impl = static_cast<weakref_impl*>(ref); in renameRefId() local
727 impl->renameStrongRefId(old_id, new_id); in renameRefId()
728 impl->renameWeakRefId(old_id, new_id); in renameRefId()