Searched refs:atomicWeak_ (Results 1 - 5 of 5) sorted by relevance
/foundation/multimedia/image_framework/mock/native/src/ |
H A D | refbase.cpp | 21 : atomicWeak_(0), refCounter_(counter), cookie_(cookie) in WeakRefCounter() 45 if (atomicWeak_.fetch_add(1, std::memory_order_relaxed) == 0) { in IncWeakRefCount() 52 if (atomicWeak_.fetch_sub(1, std::memory_order_release) == 1) { in DecWeakRefCount() 65 : atomicStrong_(INITIAL_PRIMARY_VALUE), atomicWeak_(0), atomicRefCount_(0), atomicFlags_(0), atomicAttempt_(0) in RefCounter() 138 return atomicWeak_.fetch_add(1, std::memory_order_relaxed); in IncWeakRefCount() 145 curCount = atomicWeak_.fetch_sub(1, std::memory_order_release); in DecWeakRefCount() 158 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount()
|
/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), atomicAttempt_(0) 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()
|
/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), atomicAttempt_(0) in RefCounter() 251 return atomicWeak_.fetch_add(1, std::memory_order_relaxed); in IncWeakRefCount() 261 curCount = atomicWeak_.fetch_sub(1, std::memory_order_release); in DecWeakRefCount() 289 return atomicWeak_.load(std::memory_order_relaxed); in GetWeakRefCount()
|
H A D | refbase.h | 172 * @return Original (before decrement) value of atomicWeak_. 245 std::atomic<int> atomicWeak_; // = (num of sptr)+(num of WeakRefCounter) member in OHOS::RefCounter 371 std::atomic<int> atomicWeak_; // Count of references to this WeakRefCounter object member in OHOS::WeakRefCounter
|
/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/include/ |
H A D | refbase.h | 75 std::atomic<int> atomicWeak_; member in OHOS::RefCounter 98 std::atomic<int> atomicWeak_; member in OHOS::WeakRefCounter
|
Completed in 6 milliseconds