Home
last modified time | relevance | path

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

/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/src/
H A Drefbase.cpp106 int curCount = atomicStrong_.load(std::memory_order_relaxed); in IncStrongRefCount()
108 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in IncStrongRefCount()
110 atomicStrong_.fetch_sub(INITIAL_PRIMARY_VALUE, std::memory_order_release); in IncStrongRefCount()
124 curCount = atomicStrong_.fetch_sub(1, std::memory_order_release); in DecStrongRefCount()
131 return atomicStrong_.load(std::memory_order_relaxed); in GetStrongRefCount()
192 … if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef()
196 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
202 … if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef()
205 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
210 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in AttemptIncStrongRef()
[all …]
/ohos5.0/foundation/multimedia/image_framework/mock/native/src/
H A Drefbase.cpp111 int curCount = atomicStrong_.load(std::memory_order_relaxed); in IncStrongRefCount()
113 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in IncStrongRefCount()
115 atomicStrong_.fetch_sub(INITIAL_PRIMARY_VALUE, std::memory_order_release); in IncStrongRefCount()
129 curCount = atomicStrong_.fetch_sub(1, std::memory_order_release); in DecStrongRefCount()
136 return atomicStrong_.load(std::memory_order_relaxed); in GetStrongRefCount()
196 … if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef()
201 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
207 … if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef()
211 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
216 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in AttemptIncStrongRef()
[all …]
/ohos5.0/commonlibrary/c_utils/base/src/
H A Drefbase.cpp125 "refcnt: %{public}d", objectId, this, atomicStrong_.load(std::memory_order_relaxed), in PrintRefs()
132 RefTracker* newTracker = new RefTracker(refTracker, objectId, atomicStrong_, in GetNewTrace()
247 int curCount = atomicStrong_.load(std::memory_order_relaxed); in IncStrongRefCount()
249 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in IncStrongRefCount()
251 atomicStrong_.fetch_sub(INITIAL_PRIMARY_VALUE, std::memory_order_release); in IncStrongRefCount()
268 curCount = atomicStrong_.fetch_sub(1, std::memory_order_release); in DecStrongRefCount()
276 return atomicStrong_.load(std::memory_order_relaxed); in GetStrongRefCount()
363 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
372 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
382 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in AttemptIncStrongRef()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Drefbase.cpp230 int curCount = atomicStrong_.load(std::memory_order_relaxed); in IncStrongRefCount()
232 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in IncStrongRefCount()
234 atomicStrong_.fetch_sub(INITIAL_PRIMARY_VALUE, std::memory_order_release); in IncStrongRefCount()
252 curCount = atomicStrong_.fetch_sub(1, std::memory_order_release); in DecStrongRefCount()
260 return atomicStrong_.load(std::memory_order_relaxed); in GetStrongRefCount()
341 … if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef()
345 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
354 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef()
364 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in AttemptIncStrongRef()
370 atomicStrong_.fetch_sub(INITIAL_PRIMARY_VALUE, std::memory_order_release); in AttemptIncStrongRef()
[all …]
H A Drefbase.h253 std::atomic<int> atomicStrong_; // = (num of sptr) or Initial-value
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/include/
H A Drefbase.h74 std::atomic<int> atomicStrong_;
/ohos5.0/commonlibrary/c_utils/base/include/
H A Drefbase.h263 std::atomic<int> atomicStrong_; // = (num of sptr) or Initial-value variable