MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / async_pipeline_1

Function async_pipeline_1

tutorial/T07-MultiPipeline.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace CGraph;
13
14std::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
26std::future<CStatus> async_pipeline_2(GPipelinePtr pipeline_2) {

Callers 1

tutorial_multi_pipelineFunction · 0.70

Calls 1

asyncProcessMethod · 0.45

Tested by

no test coverage detected