Searched refs:atomicStrong_ (Results 1 - 2 of 2) sorted by relevance
/commonlibrary/c_utils/base/src/ |
H A D | refbase.cpp | 125 "refcnt: %{public}d", objectId, this, atomicStrong_.load(std::memory_order_relaxed), in PrintRefs() 132 RefTracker* newTracker = new RefTracker(refTracker, objectId, atomicStrong_, in GetNewTrace() 176 : atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomicAttempt_(0) in RefCounter() 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() 359 if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) { in AttemptIncStrongRef() 363 curCount = atomicStrong_ in AttemptIncStrongRef() [all...] |
/commonlibrary/c_utils/base/include/ |
H A D | refbase.h | 263 std::atomic<int> atomicStrong_; // = (num of sptr) or Initial-value member in OHOS::RefCounter
|
Completed in 3 milliseconds