| 12 | using namespace CGraph; |
| 13 | |
| 14 | std::future<CStatus> async_pipeline_1(GPipelinePtr pipeline_1) { |
| 15 | GElementPtr node1A, node1B, node1C = nullptr; |
| 16 | |
| 17 | pipeline_1->registerGElement<MyNode1>(&node1A, {}, "node1A"); |
| 18 | pipeline_1->registerGElement<MyNode1>(&node1B, {node1A}, "node1B"); |
| 19 | pipeline_1->registerGElement<MyNode1>(&node1C, {node1B}, "node1C"); |
| 20 | |
| 21 | // 异步执行 |
| 22 | return pipeline_1->asyncProcess(5); |
| 23 | } |
| 24 | |
| 25 | |
| 26 | std::future<CStatus> async_pipeline_2(GPipelinePtr pipeline_2) { |
no test coverage detected