This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ffnamespace:tutorial [2014/09/25 15:44] torquati [Tutorial] |
ffnamespace:tutorial [2015/09/08 14:54] torquati |
||
---|---|---|---|
Line 49: | Line 49: | ||
}; | }; | ||
int main() { | int main() { | ||
- | ff_pipe<fftask_t> pipe(new firstStage, secondStage, new thirdStage); | + | ff_Pipe<> pipe(make_unique<firstStage>(), |
- | pipe.cleanup_nodes(); // cleanup at exit | + | make_unique<ff_node_F<fftask_t> >(secondStage), |
+ | make_unique<thirdStage>()); | ||
if (pipe.run_and_wait_end()<0) error("running pipe"); | if (pipe.run_and_wait_end()<0) error("running pipe"); | ||
return 0; | return 0; |