586 |
|
// are usually manually inlined by callers |
587 |
|
|
588 |
|
/** |
589 |
< |
* Increments running count part of workerCounts |
589 |
> |
* Increments running count part of workerCounts. |
590 |
|
*/ |
591 |
|
final void incrementRunningCount() { |
592 |
|
int c; |
596 |
|
} |
597 |
|
|
598 |
|
/** |
599 |
< |
* Tries to increment running count part of workerCounts |
599 |
> |
* Tries to increment running count part of workerCounts. |
600 |
|
*/ |
601 |
|
final boolean tryIncrementRunningCount() { |
602 |
|
int c; |
606 |
|
} |
607 |
|
|
608 |
|
/** |
609 |
< |
* Tries to decrement running count unless already zero |
609 |
> |
* Tries to decrement running count unless already zero. |
610 |
|
*/ |
611 |
|
final boolean tryDecrementRunningCount() { |
612 |
|
int wc = workerCounts; |
1058 |
|
long h = eventWaiters; |
1059 |
|
if (h != 0L && (int)(h >>> EVENT_COUNT_SHIFT) != eventCount) |
1060 |
|
releaseEventWaiters(); |
1061 |
– |
if (joinMe.status < 0) |
1062 |
– |
break; |
1061 |
|
if ((workerCounts & RUNNING_COUNT_MASK) != 0) { |
1062 |
|
long ms; int ns; |
1063 |
|
if (!timed) { |
1076 |
|
else |
1077 |
|
ns = (int) (nt % 1000000); |
1078 |
|
} |
1079 |
< |
if (joinMe.internalAwaitDone(ms, ns) < 0) |
1082 |
< |
break; |
1079 |
> |
joinMe.internalAwaitDone(ms, ns); |
1080 |
|
} |
1081 |
+ |
if (joinMe.status < 0) |
1082 |
+ |
break; |
1083 |
|
} |
1084 |
|
helpMaintainParallelism(); |
1085 |
|
} |
1774 |
|
* commenced but not yet completed. This method may be useful for |
1775 |
|
* debugging. A return of {@code true} reported a sufficient |
1776 |
|
* period after shutdown may indicate that submitted tasks have |
1777 |
< |
* ignored or suppressed interruption, causing this executor not |
1778 |
< |
* to properly terminate. |
1777 |
> |
* ignored or suppressed interruption, or are waiting for IO, |
1778 |
> |
* causing this executor not to properly terminate. (See the |
1779 |
> |
* advisory notes for class {@link ForkJoinTask} stating that |
1780 |
> |
* tasks should not normally entail blocking operations. But if |
1781 |
> |
* they do, they must abort them on interrupt.) |
1782 |
|
* |
1783 |
|
* @return {@code true} if terminating but not yet terminated |
1784 |
|
*/ |