MCPcopy Create free account
hub / github.com/FutureSDR/FutureSDR / msg_flowgraph

Method msg_flowgraph

perf/msg/msg_flowgraph.cpp:11–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace gr;
10
11
12msg_flowgraph::msg_flowgraph(int pipes, int stages, int burst_size) {
13
14 this->tb = make_top_block("msg_flowgraph");
15
16 for (int pipe = 0; pipe < pipes; pipe++) {
17 sched::msg_burst::sptr src = sched::msg_burst::make(1.23, burst_size);
18 basic_block_sptr prev = src;
19
20 for (int stage = 0; stage < stages; stage++) {
21 sched::msg_forward::sptr block = sched::msg_forward::make();
22 tb->msg_connect(prev, "out", block, "in");
23 prev = block;
24 }
25
26 sched::msg_sink::sptr sink = sched::msg_sink::make();
27 tb->msg_connect(prev, "out", sink, "in");
28 d_sinks.push_back(sink);
29 }
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected