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 |
|
} |