#include <parallel_while.h>
Inherits tbb::internal::no_copy.
Inheritance diagram for tbb::parallel_while< Body >:
Public Types | |
typedef Body::argument_type | value_type |
Type of items. | |
Public Member Functions | |
parallel_while () | |
Construct empty non-running parallel while. | |
~parallel_while () | |
Destructor cleans up data members before returning. | |
template<typename Stream> | |
void | run (Stream &stream, const Body &body) |
Apply body.apply to each item in the stream. | |
void | add (const value_type &item) |
Add a work item while running. |
The Body b has the requirement:
"b(v)"
"b.argument_type"
where v is an argument_type
|
Add a work item while running. Should be executed only by body.apply or a thread spawned therefrom. |
|
Apply body.apply to each item in the stream.
A Stream s has the requirements |