pthread thread priority refacto: threading.h