Changed get and set priority for threads
pull commit