57 |
|
* </pre> |
58 |
|
*/ |
59 |
|
public abstract class BinaryAsyncAction extends ForkJoinTask<Void> { |
60 |
– |
private volatile int controlState; |
61 |
– |
|
62 |
– |
static final AtomicIntegerFieldUpdater<BinaryAsyncAction> controlStateUpdater = |
63 |
– |
AtomicIntegerFieldUpdater.newUpdater(BinaryAsyncAction.class, "controlState"); |
60 |
|
|
61 |
|
/** |
62 |
|
* Parent to propagate completion; nulled after completion to |
165 |
|
a.sibling = null; |
166 |
|
a.parent = null; |
167 |
|
a.completeThis(); |
168 |
< |
if (p == null || p.compareAndSetControlState(0, 1)) |
168 |
> |
if (p == null || p.markForkJoinTask()) |
169 |
|
break; |
170 |
|
try { |
171 |
|
p.onComplete(a, s); |
229 |
|
super.reinitialize(); |
230 |
|
} |
231 |
|
|
232 |
+ |
<<<<<<< BinaryAsyncAction.java |
233 |
+ |
======= |
234 |
|
/** |
235 |
|
* Gets the control state, which is initially zero, or negative if |
236 |
|
* this task has completed or cancelled. Once negative, the value |
279 |
|
protected final void decrementControlState() { |
280 |
|
controlStateUpdater.decrementAndGet(this); |
281 |
|
} |
282 |
+ |
>>>>>>> 1.14 |
283 |
|
|
284 |
|
} |