/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/ |
H A D | ref_count.cpp | 18 RefCount::RefCount() in RefCount() function in OHOS::DistributedData::RefCount 22 RefCount::RefCount(std::function<void()> action) in RefCount() function in OHOS::DistributedData::RefCount 31 RefCount::RefCount(const RefCount &other) in RefCount() function in OHOS::DistributedData::RefCount 39 RefCount::RefCount(RefCount &&other) noexcept in RefCount() function in OHOS::DistributedData::RefCount 47 RefCount &RefCount::operator=(const RefCount &other) in operator =() 56 RefCount &RefCount::operator=(RefCount &&other) noexcept in operator =() 65 RefCount::operator bool() const
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/utils/ |
H A D | ref_count.h | 23 class API_EXPORT RefCount final { 25 RefCount(); 26 RefCount(std::function<void()> action); 27 RefCount(const RefCount &other); 28 RefCount(RefCount &&other) noexcept; 29 RefCount &operator=(const RefCount &other); 30 RefCount &operator=(RefCount &&other) noexcept;
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | utils_test.cpp | 132 RefCount refCountWithAction(action); 136 RefCount refCountWithActions(actions); 140 RefCount refCount([&num]() { in __anon20e15c150202() 145 RefCount refCount1(refCount); 148 RefCount refCount2(std::move(refCount)); 151 RefCount refCount3 = refCount1; 154 RefCount refCount4 = std::move(refCount2); 159 RefCount refCount5 = refCount1; 163 RefCount refCount6 = std::move(refCount2);
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/include/ |
H A D | matrix_event.h | 40 void SetRefCount(RefCount refCount); 41 RefCount StealRefCount() const; 47 mutable RefCount refCount_;
|
H A D | device_matrix.h | 67 void Online(const std::string &device, RefCount refCount = {});
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/ |
H A D | matrix_event.cpp | 38 void MatrixEvent::SetRefCount(RefCount refCount) in SetRefCount() 43 RefCount MatrixEvent::StealRefCount() const in StealRefCount()
|
H A D | device_matrix.cpp | 126 void DeviceMatrix::Online(const std::string &device, RefCount refCount) in Online()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/ |
H A D | sync_manager.h | 38 using RefCount = DistributedData::RefCount; variable 132 Task GetSyncTask(int32_t times, bool retry, RefCount ref, SyncInfo &&syncInfo); 137 RefCount GenSyncRef(uint64_t syncId);
|
H A D | sync_manager.cpp | 327 ExecutorPool::Task SyncManager::GetSyncTask(int32_t times, bool retry, RefCount ref, SyncInfo &&syn… in GetSyncTask() 437 executor_->Execute(GetSyncTask(times, evt.AutoRetry(), RefCount(), std::move(syncInfo))); in GetClientChangeHandler() 492 RefCount SyncManager::GenSyncRef(uint64_t syncId) in GenSyncRef() 494 return RefCount([syncId, this]() { in GenSyncRef()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | kvdb_service_impl.h | 41 using RefCount = DistributedData::RefCount; variable 129 …Status DoComplete(const StoreMetaData &meta, const SyncInfo &info, RefCount refCount, const DBResu…
|
H A D | kvdb_service_impl.cpp | 268 …std::bind(&KVDBServiceImpl::DoComplete, this, metaData, syncInfo, RefCount(), std::placeholders::_… in Sync() 532 …std::bind(&KVDBServiceImpl::DoComplete, this, metaData, syncInfo, RefCount(), std::placeholders::_… in AddSubscribeInfo() 543 …std::bind(&KVDBServiceImpl::DoComplete, this, metaData, syncInfo, RefCount(), std::placeholders::_… in RmvSubscribeInfo() 1032 DoComplete(meta, info, RefCount(), ret.second); in DoSyncInOrder() 1156 Status KVDBServiceImpl::DoComplete(const StoreMetaData &meta, const SyncInfo &info, RefCount refCou… in DoComplete()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/memory/ |
H A D | memory_monitor.h | 43 if (ptr != nullptr && ptr->RefCount() == 0) { in Update()
|
H A D | referenced.h | 86 int32_t RefCount() const in RefCount() function
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/ |
H A D | kvstore_meta_manager.cpp | 414 DeviceMatrix::GetInstance().Online(info.uuid, RefCount([deviceId = info.uuid]() { in OnDeviceChanged()
|