Searched refs:WeakRefCounter (Results 1 - 7 of 7) sorted by relevance
/foundation/multimedia/image_framework/mock/native/src/ |
H A D | refbase.cpp | 20 WeakRefCounter::WeakRefCounter(RefCounter *counter, void *cookie) in WeakRefCounter() function in OHOS::WeakRefCounter 28 WeakRefCounter::~WeakRefCounter() in ~WeakRefCounter() 35 void* WeakRefCounter::GetRefPtr() in GetRefPtr() 43 void WeakRefCounter::IncWeakRefCount(const void *objectId) in IncWeakRefCount() 50 void WeakRefCounter::DecWeakRefCount(const void *objectId) in DecWeakRefCount() 58 bool WeakRefCounter::AttemptIncStrongRef(const void *objectId) in AttemptIncStrongRef() 348 WeakRefCounter *RefBase::CreateWeakRef(void *cookie) in CreateWeakRef() 351 return new WeakRefCounter(refs in CreateWeakRef() [all...] |
/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/src/ |
H A D | refbase.cpp | 18 WeakRefCounter::WeakRefCounter(RefCounter *counter, void *cookie) in WeakRefCounter() function in OHOS::WeakRefCounter 26 WeakRefCounter::~WeakRefCounter() in ~WeakRefCounter() 33 void *WeakRefCounter::GetRefPtr() in GetRefPtr() 41 void WeakRefCounter::IncWeakRefCount(const void *objectId) in IncWeakRefCount() 48 void WeakRefCounter::DecWeakRefCount(const void *objectId) in DecWeakRefCount() 56 bool WeakRefCounter::AttemptIncStrongRef(const void *objectId) in AttemptIncStrongRef() 350 WeakRefCounter *RefBase::CreateWeakRef(void *cookie) in CreateWeakRef() 353 return new WeakRefCounter(refs in CreateWeakRef() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | refbase.cpp | 24 WeakRefCounter::WeakRefCounter(RefCounter *counter, void *cookie) in WeakRefCounter() function in OHOS::WeakRefCounter 32 WeakRefCounter::~WeakRefCounter() in ~WeakRefCounter() 39 int WeakRefCounter::GetWeakRefCount() const in GetWeakRefCount() 44 void* WeakRefCounter::GetRefPtr() in GetRefPtr() 52 void WeakRefCounter::IncWeakRefCount(const void *objectId) in IncWeakRefCount() 59 void WeakRefCounter::DecWeakRefCount(const void *objectId) in DecWeakRefCount() 67 bool WeakRefCounter::AttemptIncStrongRef(const void *objectId) in AttemptIncStrongRef() 504 WeakRefCounter *RefBas [all...] |
H A D | refbase.h | 245 std::atomic<int> atomicWeak_; // = (num of sptr)+(num of WeakRefCounter) 246 std::atomic<int> atomicRefCount_; // = (num of WeakRefCounter) + 1 306 * A WeakRefCounter object can be held by multiple wptr objects.\n 309 * target and its RefCounter object has been deallocated. Thus WeakRefCounter 313 class WeakRefCounter { class 321 WeakRefCounter(RefCounter *counter, void *cookie); 323 virtual ~WeakRefCounter(); 336 * @brief Increment the reference count to this WeakRefCounter object. 346 * @brief Decrement the reference count to this WeakRefCounter object. 348 * @note This WeakRefCounter objec [all...] |
/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/include/ |
H A D | refbase.h | 83 class WeakRefCounter { class 85 WeakRefCounter(RefCounter *counter, void *cookie); 87 virtual ~WeakRefCounter(); 127 WeakRefCounter *CreateWeakRef(void *cookie); 177 inline sptr(WeakRefCounter *p, bool force); 372 template<typename T> inline sptr<T>::sptr(WeakRefCounter *p, bool /* force */) in sptr() 451 WeakRefCounter *refs_ = nullptr; 514 WeakRefCounter *newWeakRef = nullptr; in operator =() 533 WeakRefCounter *newWeakRef = nullptr; in operator =() 565 WeakRefCounter *newWeakRe in operator =() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | mock_refbase_test.cpp | 39 WeakRefCounter ref(base, cookie);
in HWTEST_F() 56 WeakRefCounter ref(base, cookie);
in HWTEST_F() 343 WeakRefCounter *createwk = refb.CreateWeakRef(cookie);
in HWTEST_F() 358 WeakRefCounter *createwk = refb.CreateWeakRef(cookie);
in HWTEST_F()
|
/foundation/ability/ability_base/interfaces/inner_api/base/src/ |
H A D | base_object.cpp | 38 WeakReferenceImpl(IInterface *object, WeakRefCounter *wkRef) : object_(object), wkRef_(wkRef) in WeakReferenceImpl() 56 WeakRefCounter *wkRef_ = nullptr;
|
Completed in 5 milliseconds