Searched refs:atomicRefCount_ (Results 1 - 2 of 2) sorted by relevance
/commonlibrary/c_utils/base/src/ |
H A D | refbase.cpp | 126 atomicWeak_.load(std::memory_order_relaxed), atomicRefCount_.load(std::memory_order_relaxed)); in PrintRefs() 133 atomicWeak_, atomicRefCount_, getpid(), gettid()); in GetNewTrace() 176 : atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomicAttempt_(0) in RefCounter() 182 return atomicRefCount_.load(std::memory_order_relaxed); in GetRefCount() 187 atomicRefCount_.fetch_add(1, std::memory_order_relaxed); in IncRefCount() 192 if (atomicRefCount_.load(std::memory_order_relaxed) > 0) { in DecRefCount() 193 if (atomicRefCount_.fetch_sub(1, std::memory_order_release) == 1) { in DecRefCount()
|
/commonlibrary/c_utils/base/include/ |
H A D | refbase.h | 265 std::atomic<int> atomicRefCount_; // = (num of WeakRefCounter) + 1 member in OHOS::RefCounter
|
Completed in 3 milliseconds