1001 |
|
|
1002 |
|
/** |
1003 |
|
* Per-thread records for threads that submit to pools. Currently |
1004 |
< |
* holds only psuedo-random seed / index that is used to choose |
1004 |
> |
* holds only pseudo-random seed / index that is used to choose |
1005 |
|
* submission queues in method doSubmit. In the future, this may |
1006 |
|
* also incorporate a means to implement different task rejection |
1007 |
|
* and resubmission policies. |
1818 |
|
* |
1819 |
|
* @param now if true, unconditionally terminate, else only |
1820 |
|
* if no work and no active workers |
1821 |
< |
* @paran enable if true, enable shutdown when next possible |
1821 |
> |
* @param enable if true, enable shutdown when next possible |
1822 |
|
* @return true if now terminating or terminated |
1823 |
|
*/ |
1824 |
|
private boolean tryTerminate(boolean now, boolean enable) { |