Add a new thread pool pthread priority option.

Also refactor code to not duplicate information.

bug: 79570024
Test: m
Change-Id: Ib5b8c980d34b2ae92530825fceab89fa0e32baa5
4 files changed