Searched refs:mWeak (Results 1 – 1 of 1) sorted by relevance
/system/core/libutils/ |
D | RefBase.cpp | 129 std::atomic<int32_t> mWeak; member in android::RefBase::weakref_impl 137 , mWeak(0) in weakref_impl() 156 , mWeak(0) in weakref_impl() 226 addRef(&mWeakRefs, id, mWeak.load(std::memory_order_relaxed)); in addWeakRef() 233 addRef(&mWeakRefs, id, -mWeak.load(std::memory_order_relaxed)); in removeWeakRef() 473 const int32_t c __unused = impl->mWeak.fetch_add(1, in incWeak() 483 const int32_t c = impl->mWeak.fetch_sub(1, std::memory_order_release); in decWeak() 615 int32_t curCount = impl->mWeak.load(std::memory_order_relaxed); in attemptIncWeak() 619 if (impl->mWeak.compare_exchange_weak(curCount, curCount+1, in attemptIncWeak() 636 return static_cast<const weakref_impl*>(this)->mWeak in getWeakCount() [all …]
|