57 |
|
* </pre> |
58 |
|
*/ |
59 |
|
public abstract class BinaryAsyncAction extends ForkJoinTask<Void> { |
60 |
< |
private volatile int controlState; |
61 |
< |
|
62 |
< |
static final AtomicIntegerFieldUpdater<BinaryAsyncAction> controlStateUpdater = |
60 |
> |
private volatile int controlState; |
61 |
> |
|
62 |
> |
static final AtomicIntegerFieldUpdater<BinaryAsyncAction> controlStateUpdater = |
63 |
|
AtomicIntegerFieldUpdater.newUpdater(BinaryAsyncAction.class, "controlState"); |
64 |
< |
|
64 |
> |
|
65 |
|
/** |
66 |
|
* Parent to propagate completion; nulled after completion to |
67 |
|
* avoid retaining entire tree as garbage |
281 |
|
protected final void decrementControlState() { |
282 |
|
controlStateUpdater.decrementAndGet(this); |
283 |
|
} |
284 |
– |
|
285 |
– |
|
284 |
|
} |