19 |
|
* @since 1.8 |
20 |
|
*/ |
21 |
|
class ArrayPrefixHelpers { |
22 |
< |
private ArrayPrefixHelpers() {}; // non-instantiable |
22 |
> |
private ArrayPrefixHelpers() {} // non-instantiable |
23 |
|
|
24 |
|
/* |
25 |
|
* Parallel prefix (aka cumulate, scan) task classes |
187 |
|
sum = t.in; |
188 |
|
t.out = sum; |
189 |
|
for (CumulateTask<T> par;;) { // propagate |
190 |
< |
if ((par = (CumulateTask<T>)t.getCompleter()) == null) { |
190 |
> |
@SuppressWarnings("unchecked") CumulateTask<T> partmp |
191 |
> |
= (CumulateTask<T>)t.getCompleter(); |
192 |
> |
if ((par = partmp) == null) { |
193 |
|
if ((state & FINISHED) != 0) // enable join |
194 |
|
t.quietlyComplete(); |
195 |
|
break outer; |