Home
last modified time | relevance | path

Searched refs:syncFunc (Results 1 - 3 of 3) sorted by relevance

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dkvstore_sync_manager.cpp24 Status KvStoreSyncManager::AddSyncOperation(uintptr_t syncId, uint32_t delayMs, const SyncFunc &syncFunc, in AddSyncOperation() argument
27 if (syncId == 0 || syncFunc == nullptr) { in AddSyncOperation()
40 KvSyncOperation syncOp{ syncId, opSeq, delayMs, syncFunc, endFunc, beginTime }; in AddSyncOperation()
46 auto status = syncFunc(endFunc); in AddSyncOperation()
165 op.syncFunc(op.syncEnd); in Schedule()
H A Dkvstore_sync_manager.h48 SyncFunc syncFunc; member
54 Status AddSyncOperation(uintptr_t syncId, uint32_t delayMs, const SyncFunc &syncFunc, const SyncEnd &syncEnd);
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dkvdb_service_test.cpp237 DistributedKv::KvStoreSyncManager::SyncFunc syncFunc = nullptr; in HWTEST_F() local
239 auto kvStatus = syncManager.AddSyncOperation(syncId, 0, syncFunc, syncEnd); in HWTEST_F()
242 kvStatus = syncManager.AddSyncOperation(syncId, 0, syncFunc, syncEnd); in HWTEST_F()
244 syncFunc = [](const DistributedKv::KvStoreSyncManager::SyncEnd &callback) -> Status { in HWTEST_F()
250 kvStatus = syncManager.AddSyncOperation(0, 0, syncFunc, syncEnd); in HWTEST_F()

Completed in 2 milliseconds