dataflow_declare_add_sources-snippet.h 488 Bytes
Newer Older
1 2 3 4 5 6 7 8
  Producer<int>
    producer1(1),
    producer2(2),
    producer3(3),
    producer4(4);

  Network::Source<int>
    source1(
9
      network,
10 11
      embb::base::MakeFunction(producer1, &Producer<int>::Run) ),
    source2(
12
      network,
13 14
      embb::base::MakeFunction(producer2, &Producer<int>::Run) ),
    source3(
15
      network,
16 17
      embb::base::MakeFunction(producer3, &Producer<int>::Run) ),
    source4(
18
      network,
19
      embb::base::MakeFunction(producer4, &Producer<int>::Run) );