User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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;
ffnamespace/tutorial.txt · Last modified: 2015/09/08 16:52 by torquati