Home
last modified time | relevance | path

Searched refs:Ctx (Results 1 - 2 of 2) sorted by relevance

/foundation/filemanagement/dfs_service/utils/system/include/
H A Ddfsu_cmd.h46 template<typename Ctx>
48 friend class DfsuActor<Ctx>;
53 virtual void operator()(Ctx *ctx) = 0;
64 template<typename Ctx, typename... Args>
65 class DfsuCmd : public VirtualCmd<Ctx> {
66 friend class DfsuActor<Ctx>;
69 DfsuCmd(void (Ctx::*f)(Args...), Args... args) : f_(f), args_(args...) {} in DfsuCmd() argument
73 void (Ctx::*f_)(Args...);
76 void operator()(Ctx *ctx) override
78 if (!VirtualCmd<Ctx>
[all...]
H A Ddfsu_actor.h34 * @tparam Ctx Context for Commands
36 template<typename Ctx>
39 explicit DfsuActor(Ctx *ctx, uint32_t startCmdTryTimes = 1) : ctx_(ctx), retryTimes_(startCmdTryTimes) {} in DfsuActor()
58 void Recv(std::unique_ptr<VirtualCmd<Ctx>> pcmd) in Recv()
64 DfsuThreadSafeQueue<VirtualCmd<Ctx>> pendingCmds_;
66 Ctx *ctx_ {nullptr};
73 void DelayRetry(std::unique_ptr<VirtualCmd<Ctx>> cmd) in DelayRetry()
80 void Retry(std::unique_ptr<VirtualCmd<Ctx>> cmd) in Retry()
89 auto startCmd = std::make_unique<DfsuCmd<Ctx>>(&Ctx in StartCtx()
[all...]

Completed in 1 milliseconds