Home
last modified time | relevance | path

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

/system/core/libutils/
DRefBase.cpp385 weakref_impl* const refs = mRefs; in incStrong()
407 weakref_impl* const refs = mRefs; in decStrong()
437 weakref_impl* const refs = mRefs; in forceIncStrong()
461 return mRefs->mStrong.load(std::memory_order_relaxed); in getStrongCount()
651 mRefs->incWeak(id); in createWeak()
652 return mRefs; in createWeak()
657 return mRefs; in getWeakRefs()
661 : mRefs(new weakref_impl(this)) in RefBase()
667 if (mRefs->mStrong.load(std::memory_order_relaxed) in ~RefBase()
670 delete mRefs; in ~RefBase()
[all …]
DSharedBuffer.cpp40 sb->mRefs.store(1, std::memory_order_relaxed); in alloc()
109 mRefs.fetch_add(1, std::memory_order_relaxed); in acquire()
115 if (onlyOwner() || ((prev = mRefs.fetch_sub(1, std::memory_order_release) == 1) in release()
117 mRefs.store(0, std::memory_order_relaxed); in release()
DSharedBuffer.h103 mutable std::atomic<int32_t> mRefs; variable
139 return (mRefs.load(std::memory_order_acquire) == 1); in onlyOwner()
/system/core/include/utils/
DRefBase.h168 weakref_impl* const mRefs; variable