1060 |
|
* usually leads processWorkerExit to replace this thread. |
1061 |
|
* |
1062 |
|
* 2. Before running any task, the lock is acquired to prevent |
1063 |
< |
* other pool interrupts while the task is executing, and |
1064 |
< |
* clearInterruptsForTaskRun called to ensure that unless pool is |
1065 |
< |
* stopping, this thread does not have its interrupt set. |
1063 |
> |
* other pool interrupts while the task is executing, and then we |
1064 |
> |
* ensure that unless pool is stopping, this thread does not have |
1065 |
> |
* its interrupt set. |
1066 |
|
* |
1067 |
|
* 3. Each task run is preceded by a call to beforeExecute, which |
1068 |
|
* might throw an exception, in which case we cause thread to die |