#define TBB_PREVIEW_AGGREGATOR 1 #include "tbb/aggregator.h"
Computes reduction over a range.
Template class for bounded dual queue with concurrent operations.
Class for computing wall-clock times.
To control the number of instances of a single node, you can use the concurrency limit on the node. To cause it to reject messages after it reaches its concurrency limit, you construct it as a "rejecting" node.
A task_group_status represents the status of a task_group.
Suppose you want to apply a function Foo to each element of an array, and it is safe to process each element concurrently. Here is the sequential code to do this: