#include "tbb/parallel_do.h"
template<typename Item> class parallel_do_feeder;
A parallel_do_feeder enables the body of a parallel_do to add more work items.
Only class parallel_do can create or destroy a parallel_do_feeder. The only operation other code can perform on a parallel_do_feeder is to invoke method parallel_do_feeder::add.
namespace tbb {
template<typename Item>
struct parallel_do_feeder {
void add( const Item& item );
};
}
| Member | Description |
|---|---|
| void add( const Item& item )() |
Requirements: Must be called from a call to body .operator() created by parallel_do. Otherwise, the termination semantics of method operator() are undefined. Effects: Adds item to collection of work items to be processed. |