Home
last modified time | relevance | path

Searched refs:mStrong (Results 1 – 1 of 1) sorted by relevance

/aosp12/system/core/libutils/
H A DRefBase.cpp162 std::atomic<int32_t> mStrong; member in android::RefBase::weakref_impl
170 : mStrong(INITIAL_STRONG_VALUE) in weakref_impl()
189 : mStrong(INITIAL_STRONG_VALUE) in weakref_impl()
241 addRef(&mStrongRefs, id, mStrong.load(std::memory_order_relaxed)); in addStrongRef()
431 const int32_t c = refs->mStrong.fetch_add(1, std::memory_order_relaxed); in incStrong()
510 refs->mStrong.fetch_sub(INITIAL_STRONG_VALUE, in forceIncStrong()
521 return mRefs->mStrong.load(std::memory_order_relaxed); in getStrongCount()
563 if (impl->mStrong.load(std::memory_order_relaxed) in decWeak()
591 int32_t curCount = impl->mStrong.load(std::memory_order_relaxed); in attemptIncStrong()
599 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
[all …]