Lines Matching refs:mWeak
152 std::atomic<int32_t> mWeak; member in android::RefBase::weakref_impl
160 , mWeak(0) in weakref_impl()
179 , mWeak(0) in weakref_impl()
249 addRef(&mWeakRefs, id, mWeak.load(std::memory_order_relaxed)); in addWeakRef()
256 addRef(&mWeakRefs, id, -mWeak.load(std::memory_order_relaxed)); in removeWeakRef()
505 const int32_t c __unused = impl->mWeak.fetch_add(1, in incWeak()
515 const int32_t c = impl->mWeak.fetch_sub(1, std::memory_order_release); in decWeak()
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()
674 return static_cast<const weakref_impl*>(this)->mWeak in getWeakCount()
713 if (mRefs->mWeak.load(std::memory_order_relaxed) == 0) { in ~RefBase()
721 ALOGD("RefBase: Explicit destruction, weak count = %d (in %p)", mRefs->mWeak.load(), this); in ~RefBase()
724 LOG_ALWAYS_FATAL("RefBase: Explicit destruction, weak count = %d", mRefs->mWeak.load()); in ~RefBase()