148 |
|
final int lo, hi; |
149 |
|
long in, out; |
150 |
|
|
151 |
< |
Cumulater(Cumulater parent, LongByLongToLong function, |
151 |
> |
Cumulater(Cumulater parent, LongByLongToLong function, |
152 |
|
long[] array, int lo, int hi) { |
153 |
|
super(parent); |
154 |
|
this.function = function; this.array = array; |
206 |
|
for (int b;;) { |
207 |
|
if (((b = t.getPendingCount()) & FINISHED) != 0) |
208 |
|
break outer; // already done |
209 |
< |
state = ((b & CUMULATE) != 0? FINISHED : |
210 |
< |
(l > 0) ? SUMMED : (SUMMED|FINISHED)); |
209 |
> |
state = (((b & CUMULATE) != 0) |
210 |
> |
? FINISHED |
211 |
> |
: (l > 0) ? SUMMED : (SUMMED|FINISHED)); |
212 |
|
if (t.compareAndSetPendingCount(b, b|state)) |
213 |
|
break; |
214 |
|
} |