Lines Matching refs:mStrong
151 std::atomic<int32_t> mStrong; member in android::RefBase::weakref_impl
159 : mStrong(INITIAL_STRONG_VALUE) in weakref_impl()
178 : mStrong(INITIAL_STRONG_VALUE) in weakref_impl()
228 addRef(&mStrongRefs, id, mStrong.load(std::memory_order_relaxed)); in addStrongRef()
237 addRef(&mStrongRefs, id, -mStrong.load(std::memory_order_relaxed)); in removeStrongRef()
417 const int32_t c = refs->mStrong.fetch_add(1, std::memory_order_relaxed); in incStrong()
426 int32_t old __unused = refs->mStrong.fetch_sub(INITIAL_STRONG_VALUE, std::memory_order_relaxed); in incStrong()
436 const int32_t c = refs->mStrong.fetch_sub(1, std::memory_order_release); in decStrong()
473 const int32_t c = refs->mStrong.fetch_add(1, std::memory_order_relaxed); in forceIncStrong()
482 refs->mStrong.fetch_sub(INITIAL_STRONG_VALUE, in forceIncStrong()
493 return mRefs->mStrong.load(std::memory_order_relaxed); in getStrongCount()
527 if (impl->mStrong.load(std::memory_order_relaxed) in decWeak()
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()
590 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
616 curCount = impl->mStrong.fetch_add(1, std::memory_order_relaxed); in attemptIncStrong()
642 impl->mStrong.fetch_sub(INITIAL_STRONG_VALUE, in attemptIncStrong()
716 } else if (mRefs->mStrong.load(std::memory_order_relaxed) == INITIAL_STRONG_VALUE) { in ~RefBase()