509 |
|
/** |
510 |
|
* If the pending count is nonzero, (atomically) decrements it. |
511 |
|
* |
512 |
< |
* @return the initial (undecremented) pending count holding on entry |
512 |
> |
* @return the initial (undecremented) pending count holding on entry |
513 |
|
* to this method |
514 |
|
*/ |
515 |
|
public final int decrementPendingCountUnlessZero() { |
626 |
|
* this task's pending count is non-zero, decrements its pending |
627 |
|
* count and returns {@code null}. Otherwise, returns the |
628 |
|
* completer. This method can be used as part of a completion |
629 |
< |
* traversal loop for homogenous task hierarchies: |
629 |
> |
* traversal loop for homogeneous task hierarchies: |
630 |
|
* |
631 |
|
* <pre> {@code |
632 |
< |
* for(CountedCompleter<?> c = firstComplete(); c != null; c = c.nextComplete()) { |
632 |
> |
* for (CountedCompleter<?> c = firstComplete(); |
633 |
> |
* c != null; |
634 |
> |
* c = c.nextComplete()) { |
635 |
|
* // ... process c ... |
636 |
|
* }}</pre> |
637 |
|
* |