Home
last modified time | relevance | path

Searched refs:WeakRefCounter (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/
H A Drefbase_fuzzer.cpp89 [](SingleThreadRefCounts* refState, WeakRefCounter*&) { in __anone27d57a10102()
124 [](SingleThreadRefCounts* refState, WeakRefCounter*&) { in __anone27d57a10302()
143 [](SingleThreadRefCounts*, WeakRefCounter*&) { in __anone27d57a10402()
148 [](SingleThreadRefCounts*, WeakRefCounter*&) { in __anone27d57a10502()
156 [](SingleThreadRefCounts*, WeakRefCounter*&) { in __anone27d57a10602()
161 [](SingleThreadRefCounts*, WeakRefCounter*&) { in __anone27d57a10702()
166 [](SingleThreadRefCounts*, WeakRefCounter*&) { in __anone27d57a10802()
178 [](SingleThreadRefCounts* refState, WeakRefCounter*&) { in __anone27d57a10a02()
216 [](SingleThreadRefCounts* refState, WeakRefCounter*&) { in __anone27d57a10e02()
223 [](SingleThreadRefCounts* refState, WeakRefCounter*&) { in __anone27d57a10f02()
[all …]
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/src/
H A Drefbase.cpp18 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_, cookie); in CreateWeakRef()
/ohos5.0/foundation/multimedia/image_framework/mock/native/src/
H A Drefbase.cpp20 WeakRefCounter::WeakRefCounter(RefCounter *counter, void *cookie) in WeakRefCounter() function in OHOS::WeakRefCounter
28 WeakRefCounter::~WeakRefCounter() in ~WeakRefCounter()
35 void* WeakRefCounter::GetRefPtr() in GetRefPtr()
46 void WeakRefCounter::IncWeakRefCount(const void *objectId) in IncWeakRefCount()
53 void WeakRefCounter::DecWeakRefCount(const void *objectId) in DecWeakRefCount()
61 bool WeakRefCounter::AttemptIncStrongRef(const void *objectId) in AttemptIncStrongRef()
351 WeakRefCounter *RefBase::CreateWeakRef(void *cookie) in CreateWeakRef()
354 return new WeakRefCounter(refs_, cookie); in CreateWeakRef()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Drefbase.cpp24 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()
542 WeakRefCounter *RefBase::CreateWeakRef(void *cookie) in CreateWeakRef()
545 return new WeakRefCounter(refs_, cookie); in CreateWeakRef()
H A Drefbase.h325 class WeakRefCounter {
333 WeakRefCounter(RefCounter *counter, void *cookie);
335 virtual ~WeakRefCounter();
489 WeakRefCounter *CreateWeakRef(void *cookie);
682 inline sptr(WeakRefCounter *p, bool force);
1015 inline sptr<T>::sptr(WeakRefCounter *p, bool /* force */) in sptr()
1295 WeakRefCounter *refs_ = nullptr; // Pointer to the corresponding weak reference counter object
1368 WeakRefCounter *newWeakRef = nullptr;
1389 WeakRefCounter *newWeakRef = nullptr;
1423 WeakRefCounter *newWeakRef = nullptr;
[all …]
/ohos5.0/commonlibrary/c_utils/base/src/
H A Drefbase.cpp24 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()
576 WeakRefCounter *RefBase::CreateWeakRef(void *cookie) in CreateWeakRef()
579 return new WeakRefCounter(refs_, cookie); in CreateWeakRef()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/include/
H A Drefbase.h83 class WeakRefCounter {
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;
533 WeakRefCounter *newWeakRef = nullptr;
565 WeakRefCounter *newWeakRef = nullptr;
[all …]
/ohos5.0/commonlibrary/c_utils/base/include/
H A Drefbase.h301 class WeakRefCounter {
309 WeakRefCounter(RefCounter *counter, void *cookie);
311 virtual ~WeakRefCounter();
468 WeakRefCounter *CreateWeakRef(void *cookie);
691 inline sptr(WeakRefCounter *p, bool force);
1042 inline sptr<T>::sptr(WeakRefCounter *p, bool /* force */) in sptr()
1328 WeakRefCounter *refs_ = nullptr; // Pointer to the corresponding WeakRefCounter object
1401 WeakRefCounter *newWeakRef = nullptr;
1422 WeakRefCounter *newWeakRef = nullptr;
1456 WeakRefCounter *newWeakRef = nullptr;
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/
H A DREADME_zh.md34 L-->|是|M[释放存在的WeakRefCounter对象]
67 | **bool** weakRefCounterExists = false; | 是否创建了WeakRefCounter对象。 |
68 | **size_t** weakRefCount = 0; | WeakRefCounter造成的弱引用计数加减,DecWeakRefCount、IncWeakRefCount…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dmock_refbase_test.cpp39 WeakRefCounter ref(base, cookie);
56 WeakRefCounter ref(base, cookie);
343 WeakRefCounter *createwk = refb.CreateWeakRef(cookie);
358 WeakRefCounter *createwk = refb.CreateWeakRef(cookie);
/ohos5.0/foundation/ability/ability_base/interfaces/inner_api/base/src/
H A Dbase_object.cpp40 WeakReferenceImpl(IInterface *object, WeakRefCounter *wkRef) : object_(object), wkRef_(wkRef) in WeakReferenceImpl()
58 WeakRefCounter *wkRef_ = nullptr;
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc-utils-guide-refbase.md93 其间接引用RefBase对象;直接引用WeakRefCounter对象。
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/refbase_benchmark_test/
H A Drefbase_benchmark_test.cpp1679 WeakRefCounter *newWeakRef = baseObject1->CreateWeakRef(newRefbase); in BENCHMARK_F()