Searched refs:atomicStrong_ (Results 1 - 5 of 5) sorted by relevance
/foundation/multimedia/image_framework/mock/native/src/ |
H A D | refbase.cpp | 65 : atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomicAttempt_(0) in RefCounter() 108 int curCount = atomicStrong_.load(std::memory_order_relaxed); in IncStrongRefCount() 110 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in IncStrongRefCount() 112 atomicStrong_.fetch_sub(INITIAL_PRIMARY_VALUE, std::memory_order_release); in IncStrongRefCount() 126 curCount = atomicStrong_.fetch_sub(1, std::memory_order_release); in DecStrongRefCount() 133 return atomicStrong_.load(std::memory_order_relaxed); in GetStrongRefCount() 193 if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef() 198 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef() 204 if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef() 208 curCount = atomicStrong_ in AttemptIncStrongRef() [all...] |
/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/src/ |
H A D | refbase.cpp | 63 : atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomicAttempt_(0) in RefCounter() 106 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_ in AttemptIncStrongRef() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | refbase.cpp | 147 RefTracker* newTracker = new RefTracker(refTracker, objectId, atomicStrong_.load(std::memory_order_relaxed), in GetNewTrace() 163 : atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomicAttempt_(0) in RefCounter() 213 int curCount = atomicStrong_.load(std::memory_order_relaxed); in IncStrongRefCount() 215 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed); in IncStrongRefCount() 217 atomicStrong_.fetch_sub(INITIAL_PRIMARY_VALUE, std::memory_order_release); in IncStrongRefCount() 235 curCount = atomicStrong_.fetch_sub(1, std::memory_order_release); in DecStrongRefCount() 243 return atomicStrong_.load(std::memory_order_relaxed); in GetStrongRefCount() 324 if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef() 328 curCount = atomicStrong_.load(std::memory_order_relaxed); in AttemptIncStrongRef() 334 if (atomicStrong_ in AttemptIncStrongRef() [all...] |
H A D | refbase.h | 244 std::atomic<int> atomicStrong_; // = (num of sptr) or Initial-value member in OHOS::RefCounter
|
/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/include/ |
H A D | refbase.h | 74 std::atomic<int> atomicStrong_; member in OHOS::RefCounter
|
Completed in 5 milliseconds