Home
last modified time | relevance | path

Searched refs:RefCount (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/
H A Dref_count.cpp18 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 Dref_count.h23 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 Dutils_test.cpp132 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 Dmatrix_event.h40 void SetRefCount(RefCount refCount);
41 RefCount StealRefCount() const;
47 mutable RefCount refCount_;
H A Ddevice_matrix.h67 void Online(const std::string &device, RefCount refCount = {});
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/
H A Dmatrix_event.cpp38 void MatrixEvent::SetRefCount(RefCount refCount) in SetRefCount()
43 RefCount MatrixEvent::StealRefCount() const in StealRefCount()
H A Ddevice_matrix.cpp126 void DeviceMatrix::Online(const std::string &device, RefCount refCount) in Online()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/
H A Dsync_manager.h38 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 Dsync_manager.cpp327 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 Dkvdb_service_impl.h41 using RefCount = DistributedData::RefCount; variable
129 …Status DoComplete(const StoreMetaData &meta, const SyncInfo &info, RefCount refCount, const DBResu…
H A Dkvdb_service_impl.cpp268 …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 Dmemory_monitor.h43 if (ptr != nullptr && ptr->RefCount() == 0) { in Update()
H A Dreferenced.h86 int32_t RefCount() const in RefCount() function
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/
H A Dkvstore_meta_manager.cpp414 DeviceMatrix::GetInstance().Online(info.uuid, RefCount([deviceId = info.uuid]() { in OnDeviceChanged()