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

Function async_pipeline_3

tutorial/T07-MultiPipeline.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37std::future<CStatus> async_pipeline_3(GPipelinePtr pipeline_3) {
38 CStatus status;
39 GElementPtr node3A, node3B, node3C, node3D = nullptr;
40 GElementPtr region = nullptr;
41
42 node3A = pipeline_3->createGNode<MyNode1>(GNodeInfo({}, "node3A", 1));
43 node3B = pipeline_3->createGNode<MyNode2>(GNodeInfo({node3A}, "node3B", 1));
44 node3C = pipeline_3->createGNode<MyNode1>(GNodeInfo({node3A}, "node3C", 1));
45 node3D = pipeline_3->createGNode<MyNode1>(GNodeInfo({node3B, node3C}, "node3D", 1));
46
47 region = pipeline_3->createGGroup<GRegion>({node3A, node3B, node3C, node3D});
48
49 pipeline_3->registerGElement<GRegion>(&region);
50 return pipeline_3->asyncProcess(2);
51}
52
53
54void tutorial_multi_pipeline() {

Callers 1

tutorial_multi_pipelineFunction · 0.85

Calls 2

GNodeInfoClass · 0.85
asyncProcessMethod · 0.45

Tested by

no test coverage detected