| 9 | #include "GDaemon.h" |
| 10 | |
| 11 | CGRAPH_NAMESPACE_BEGIN |
| 12 | |
| 13 | CStatus GDaemon::init() { |
| 14 | CGRAPH_FUNCTION_BEGIN |
| 15 | timer_.start(interval_, [this] { |
| 16 | daemonTask(param_); |
| 17 | }, [this] { |
| 18 | return modify(param_); |
| 19 | }); |
| 20 | CGRAPH_FUNCTION_END |
| 21 | } |
| 22 | |
| 23 | |
| 24 | CStatus GDaemon::destroy() { |