Searched refs:atomicWeak_ (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | refbase.cpp | 25 : atomicWeak_(0), refCounter_(counter), cookie_(cookie) in WeakRefCounter() 41 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount() 54 if (atomicWeak_.fetch_add(1, std::memory_order_relaxed) == 0) { in IncWeakRefCount() 61 if (atomicWeak_.fetch_sub(1, std::memory_order_release) == 1) { in DecWeakRefCount() 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), atomi… in RefCounter() 282 return atomicWeak_.fetch_add(1, std::memory_order_relaxed); in IncWeakRefCount() 290 curCount = atomicWeak_.fetch_sub(1, std::memory_order_release); in DecWeakRefCount() 319 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/src/ |
H A D | refbase.cpp | 19 : atomicWeak_(0), refCounter_(counter), cookie_(cookie) in WeakRefCounter() 43 if (atomicWeak_.fetch_add(1, std::memory_order_relaxed) == 0) { in IncWeakRefCount() 50 if (atomicWeak_.fetch_sub(1, std::memory_order_release) == 1) { in DecWeakRefCount() 63 …: atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomi… in RefCounter() 136 return atomicWeak_.fetch_add(1, std::memory_order_relaxed); in IncWeakRefCount() 143 curCount = atomicWeak_.fetch_sub(1, std::memory_order_release); in DecWeakRefCount() 157 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount()
|
/ohos5.0/foundation/multimedia/image_framework/mock/native/src/ |
H A D | refbase.cpp | 21 : atomicWeak_(0), refCounter_(counter), cookie_(cookie) in WeakRefCounter() 48 if (atomicWeak_.fetch_add(1, std::memory_order_relaxed) == 0) { in IncWeakRefCount() 55 if (atomicWeak_.fetch_sub(1, std::memory_order_release) == 1) { in DecWeakRefCount() 68 …: atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomi… in RefCounter() 141 return atomicWeak_.fetch_add(1, std::memory_order_relaxed); in IncWeakRefCount() 148 curCount = atomicWeak_.fetch_sub(1, std::memory_order_release); in DecWeakRefCount() 161 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | refbase.cpp | 25 : atomicWeak_(0), refCounter_(counter), cookie_(cookie) in WeakRefCounter() 41 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount() 54 if (atomicWeak_.fetch_add(1, std::memory_order_relaxed) == 0) { in IncWeakRefCount() 61 if (atomicWeak_.fetch_sub(1, std::memory_order_release) == 1) { in DecWeakRefCount() 148 … atomicWeak_.load(std::memory_order_relaxed), atomicRefCount_.load(std::memory_order_relaxed), in GetNewTrace() 163 …: atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomi… in RefCounter() 268 return atomicWeak_.fetch_add(1, std::memory_order_relaxed); in IncWeakRefCount() 278 curCount = atomicWeak_.fetch_sub(1, std::memory_order_release); in DecWeakRefCount() 306 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount()
|
H A D | refbase.h | 254 std::atomic<int> atomicWeak_; // = (num of sptr)+(num of WeakRefCounter) variable 383 std::atomic<int> atomicWeak_; // Count of references to this WeakRefCounter object
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/include/ |
H A D | refbase.h | 75 std::atomic<int> atomicWeak_; variable 98 std::atomic<int> atomicWeak_;
|
/ohos5.0/commonlibrary/c_utils/base/include/ |
H A D | refbase.h | 264 std::atomic<int> atomicWeak_; // = (num of sptr)+(num of WeakRefCounter) variable 359 std::atomic<int> atomicWeak_; // Count of references to this
|