478 |
|
* negative, there is at least one waiting worker, and when e is |
479 |
|
* negative, the pool is terminating. To deal with these possibly |
480 |
|
* negative fields, we use casts in and out of "short" and/or |
481 |
< |
* signed shifts to maintain signedness. Note: AC_SHIFT is |
482 |
< |
* redundantly declared in ForkJoinWorkerThread in order to |
483 |
< |
* integrate a surplus-threads check. |
481 |
> |
* signed shifts to maintain signedness. |
482 |
|
*/ |
483 |
|
volatile long ctl; |
484 |
|
|
1733 |
|
|
1734 |
|
/** |
1735 |
|
* Returns an estimate of the number of tasks submitted to this |
1736 |
< |
* pool that have not yet begun executing. This meThod may take |
1736 |
> |
* pool that have not yet begun executing. This method may take |
1737 |
|
* time proportional to the number of submissions. |
1738 |
|
* |
1739 |
|
* @return the number of queued submissions |