Searched refs:mWeak (Results 1 – 1 of 1) sorted by relevance
/system/core/libutils/ |
D | RefBase.cpp | 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() [all …]
|