1761 |
|
* check requires a full scan, it is worthwhile in reducing false |
1762 |
|
* alarms. |
1763 |
|
* |
1764 |
< |
* @param task if nonnull, a task being waited for |
1765 |
< |
* @param blocker if nonnull, a blocker being waited for |
1764 |
> |
* @param task if non-null, a task being waited for |
1765 |
> |
* @param blocker if non-null, a blocker being waited for |
1766 |
|
* @return true if the caller can block, else should recheck and retry |
1767 |
|
*/ |
1768 |
|
final boolean tryCompensate(ForkJoinTask<?> task, ManagedBlocker blocker) { |
1821 |
|
} |
1822 |
|
|
1823 |
|
/** |
1824 |
< |
* Helps and/or blocks until the given task is done |
1824 |
> |
* Helps and/or blocks until the given task is done. |
1825 |
|
* |
1826 |
|
* @param joiner the joining worker |
1827 |
|
* @param task the task |