FastFlow farm

Create the farm object using the ff_farm class:

ff_farm<> myFarm;

Add workers:

std::vector<ff_node*> workers; 
...
myFarm.add_workers(workers);

Possibly add emitter and collector:

myFarm.add_emitter(...);
my_farm.add_collector(...);