| 81 | class ResultGNode : public GNode { |
| 82 | public: |
| 83 | CStatus run() override { |
| 84 | while (true) { |
| 85 | std::shared_ptr<ResultMParam> result = nullptr; |
| 86 | auto status = CGRAPH_RECV_MPARAM_WITH_TIMEOUT(ResultMParam, RESULT_TOPIC_NAME, result, 1000); |
| 87 | if (status.isErr()) { |
| 88 | break; |
| 89 | } |
| 90 | |
| 91 | randomSleep(1, 5); |
| 92 | CGRAPH_ECHO("negative num is [%d], english info is [%s], process time is [%d]ms", |
| 93 | result->negative_num_, result->eng_info_.c_str(), result->process_ts_); |
| 94 | } |
| 95 | |
| 96 | CGRAPH_ECHO(" ----> ResultGNode run finished"); |
| 97 | return CStatus(); |
| 98 | } |
| 99 | }; |
| 100 | |
| 101 | void example_third_flow() { |
nothing calls this directly
no test coverage detected