Specify that a parallel loop should recursively split its range until it cannot be subdivided further.
#include "tbb/partitioner.h"
class simple_partitioner;
A simple_partitioner specifies that a loop template should recursively divide its range until for each subrange r, the condition !r.is_divisible() holds. This is the default behavior of the loop templates that take a range argument.
When using simple_partitioner and a blocked_range for a parallel loop, be careful to specify an appropriate grainsize for the blocked_range. The default grainsize is 1, which may make the subranges much too small for efficient execution.
namespace tbb { class simple_partitioner { public: simple_partitioner(); ~simple_partitioner(); } }
Member | Description |
---|---|
simle_partitioner() |
Construct an simple_partitioner. |
~simple_partitioner() |
Destroy this simple_partitioner. |