NAME

threads::tbb::blocked_int - a divisible range of integers

SYNOPSIS

use threads::tbb;

# a range, and a minimum quanta
my $range = threads::tbb::blocked_int->new(1, 10, 1);

print $range->size;         # 9
print $range->begin;        # 1
print $range->end;          # 10
print $range->grainsize;    # 1
print $range->is_divisible; # bool: 1 or ""
print $range->empty;        # bool: 1 or ""

DESCRIPTION

This class lets you construct a tbb::blocked_range<int> range. This is used for passing to functions such as "parallel_for" in threads::tbb to specify the iteration / division space.

SEE ALSO

threads::tbb