523 |
|
* Lifecycle control. The low word contains the number of workers |
524 |
|
* that are (probably) executing tasks. This value is atomically |
525 |
|
* incremented before a worker gets a task to run, and decremented |
526 |
< |
* when worker has no tasks and cannot find any. Bits 16-18 |
526 |
> |
* when a worker has no tasks and cannot find any. Bits 16-18 |
527 |
|
* contain runLevel value. When all are zero, the pool is |
528 |
|
* running. Level transitions are monotonic (running -> shutdown |
529 |
|
* -> terminating -> terminated) so each transition adds a bit. |