Added support for priority queue thread pools.

Change-Id: Ia450a7377496f68594475611d8261d3b24141e46